jackfirst72
26-Oct-2007, 08:36 AM
Hi,
I've been using EurekaLog within Form applications for a while and I haven't got any troubles to get memory leaks reports.
But now I'm trying to remodel a console application and I'm not able to get a correct report about memory leak.
Precisions about the EurekaLog configuration within the Delphi 2007 for Win32 "Project/EurekaLog Options" menu. I just activated EurekaLog and check all chexboxes about memory leaks.
I know that the report is generating into the console but also in my home directory if I didn't supplied a log path in the configuration. With the following code, no memory leak report of any kind is generated (I mean just no output file):
program Project1;
{$APPTYPE CONSOLE}
uses
ExceptionLog,
SysUtils,
Classes;
var
MyList : TStringList;
begin
try
MyList := TStringList.Create;
Writeln('Démarrage ...');
Sleep(1000);
except
on E:Exception do
begin
Writeln(E.Classname, ': ', E.Message);
Sleep(5000);
end;
end;
end.
In the other hand, with the same code just modified a little bit like this one :
program Project1;
{$APPTYPE CONSOLE}
uses
ExceptionLog,
SysUtils,
Classes;
procedure GenerateMemoryLeaks;
var
MyList : TStringList;
begin
MyList := TStringList.Create;
end;
begin
try
GenerateMemoryLeaks;
Writeln('Démarrage ...');
Sleep(1000);
except
on E:Exception do
begin
Writeln(E.Classname, ': ', E.Message);
Sleep(5000);
end;
end;
end.
Now I get a report, but no the same than in Form applications !
Report of a memory leak generated into a form application : see "EurekaLogFormApplicLeak.PNG" attachment ("MemoryLeak: Type=TStringList; Total size=56; Count=1").
Report of a memory leak generated into a console application : see "EurekaLogConsoleLeak.PNG" attachment ("Exception Thread: ID=TStringList; Priority=56; Class=1;").
Thanks a lot for your help.
Another simple question. I read some lines about how to activate/desactivate memory leak reproting at run time, but I'm still not able to do it ! What's the procedure or methods to use ?
Thanks again and "bravo" for your product.
I've been using EurekaLog within Form applications for a while and I haven't got any troubles to get memory leaks reports.
But now I'm trying to remodel a console application and I'm not able to get a correct report about memory leak.
Precisions about the EurekaLog configuration within the Delphi 2007 for Win32 "Project/EurekaLog Options" menu. I just activated EurekaLog and check all chexboxes about memory leaks.
I know that the report is generating into the console but also in my home directory if I didn't supplied a log path in the configuration. With the following code, no memory leak report of any kind is generated (I mean just no output file):
program Project1;
{$APPTYPE CONSOLE}
uses
ExceptionLog,
SysUtils,
Classes;
var
MyList : TStringList;
begin
try
MyList := TStringList.Create;
Writeln('Démarrage ...');
Sleep(1000);
except
on E:Exception do
begin
Writeln(E.Classname, ': ', E.Message);
Sleep(5000);
end;
end;
end.
In the other hand, with the same code just modified a little bit like this one :
program Project1;
{$APPTYPE CONSOLE}
uses
ExceptionLog,
SysUtils,
Classes;
procedure GenerateMemoryLeaks;
var
MyList : TStringList;
begin
MyList := TStringList.Create;
end;
begin
try
GenerateMemoryLeaks;
Writeln('Démarrage ...');
Sleep(1000);
except
on E:Exception do
begin
Writeln(E.Classname, ': ', E.Message);
Sleep(5000);
end;
end;
end.
Now I get a report, but no the same than in Form applications !
Report of a memory leak generated into a form application : see "EurekaLogFormApplicLeak.PNG" attachment ("MemoryLeak: Type=TStringList; Total size=56; Count=1").
Report of a memory leak generated into a console application : see "EurekaLogConsoleLeak.PNG" attachment ("Exception Thread: ID=TStringList; Priority=56; Class=1;").
Thanks a lot for your help.
Another simple question. I read some lines about how to activate/desactivate memory leak reproting at run time, but I'm still not able to do it ! What's the procedure or methods to use ?
Thanks again and "bravo" for your product.