EurekaLog newsgroups
Go Back   EurekaLog newsgroups > Support > General
Reply
 
Thread Tools Display Modes
  #1  
Old 17-Jul-2009, 07:18 AM
PekunZip PekunZip is offline
Junior Member
 
Join Date: Jul 2008
Posts: 6
Default EL does not log mem leak in a thread

I'm facing with problem that EL does not log mem leaks from a thread.
I'm using D2009 pro with EL 6.0.20 pro.

My application does El logging into .elf log file because exe is running as hidden application (black box app).

Main application "uses" section has definition
ExceptionLog among other ones (windows,classes,sysutils ets...)

Just beginning of main code there is defined procedures
HandledExceptionNotify := EurekaLogHandledExceptionNotify;
ExceptionNotify := EurekaLogExceptionNotify;
to achieve writing leaks and errors into log file. These
procedures are written into separate code module which is
introduced for main application uses clause - of course. This separate
code module has uses section equipped with definitions "ExceptionLog, ECore, ETypes;" and procedures mentioned above.

Main app does start a thread (own TThread descendant code module) which does a lot of things with unwanted "leaking feature" which should be trapped with EL.

However it seems that EL does not detect leaks from that thread.

I tried to generate leaks by creating multiple instances of TClientDataset in a thread without freeing them but it seems EL does not detect leaking.

What am I doing wrong?

Should
HandledExceptionNotify := EurekaLogHandledExceptionNotify;
ExceptionNotify := EurekaLogExceptionNotify;

definitions to be done in a thread code also?

I added an code segment into thread code which causes and AV exception.
This exception does occur with D2009 IDE but El does not react for that.
It's obvious that there is somekinda problem with EL settings of config - but what?

Last edited by PekunZip; 17-Jul-2009 at 07:24 AM. Reason: Tested case with exception
Reply With Quote
  #2  
Old 17-Jul-2009, 07:41 AM
Alex Alex is offline
Support Team
 
Join Date: Jan 2009
Location: Russia
Posts: 1,378
Send a message via ICQ to Alex
Default

Hi,

Can you create a demo?
Please, try create an empty application and add TThread and any of your code, that you suspect. Enable EL and see if it reproduce the behavior.
__________________
Best regards...

Alexander - EurekaLog Developer Team
Reply With Quote
  #3  
Old 17-Jul-2009, 02:04 PM
PekunZip PekunZip is offline
Junior Member
 
Join Date: Jul 2008
Posts: 6
Default More testing...

I removed
HandledExceptionNotify := EurekaLogHandledExceptionNotify;
ExceptionNotify := EurekaLogExceptionNotify;

things from project and just configured EL to log without message boxes.
Seems that it works now so that exceptions and leaks are reported from threads.

So I presume that it is not anymore needed to create wrapper functions to log leaks into file... Am I right?
Reply With Quote
  #4  
Old 17-Jul-2009, 03:01 PM
Alex Alex is offline
Support Team
 
Join Date: Jan 2009
Location: Russia
Posts: 1,378
Send a message via ICQ to Alex
Default

Hi,

I don't know, since I don't see your application - therefore I can not imagine, what happens at your side.
Please, take a look at this question: http://support.eurekalog.com/index.p...eid=12&nav=0,6
__________________
Best regards...

Alexander - EurekaLog Developer Team
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
UI bug when error raised in thread E_Pluribus_Unum Bugreports 3 28-May-2010 08:02 PM
Get debug info within a thread without an error Yahoo Serious Suggestions 0 05-Aug-2008 02:51 PM
Thread safe ? Denville Longhurst General 2 04-Jul-2006 05:04 PM

All times are GMT. The time now is 04:37 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © EurekaLab s.a.s. - VAT ID: IT05554520824