Is there the same method that FastMM4 for Delphi allows to report a memory leak to a verbose file if the application works as a service? Of course, it would be best practice to write unit tests and a simple standalone application first and find the leaks out there outside the service environment.
Edit: and there is http://blog.delphi-jedi.net/2008/05/07/debugging-services-an-easy-way/
As Lars Trujens notes, writing to a log file requires file system privileges. The default local system account (i.e. when you do not explicitly set up an account or enter your code) has full access to the local file system, but does not have network access by default.
FWIW. I usually design my services as regular Windows applications until the bulk of the logic is up and down. Using a library such as SvCom allows you to run your services as a regular desktop application or as a service without any code changes.
Yes, if the account used to start the service has sufficient rights to write the log file.
. , , , . , . FullDebugMode dll, LogMemoryLeakDetailToFile, IDE. , , , , . FastMM. , . , , . "-", , , . , . FastMM478 Delphi2007.
, , - , ...
, .
, , FASTMM478, , :
// testToMakeError: = TStringList.Create; I: 0 100 testToMakeError.Add( 'Foobar');
, - , , , .
Source: https://habr.com/ru/post/1709537/More articles:How to combine data with google search - searchMYSQL - generating a subset in a table - mysqlHow do you write tests for code that requires duplication of test code? - unit-testingAlways update files with minor updates (how) - installerCreating sequences for a subset of a table - sqlIphone Developer Responsibility - iphoneC # Deployement saving files during installation - installerWhat is the right to use the accelerator drive library? - c ++Concurrency Problem - phpDisplay Japanese characters in TItle Bar Java - javaAll Articles