EurekaLog newsgroups
  #1  
Old 10-Oct-2011, 12:00 PM
Marcel
Guest
 
Posts: n/a
Default Strange...

Working with Delphi 2005 and Eurekalog 6.0.1.3.
When I trap memory leaks in Eurekalog, my application runs fine.

If I don't trap memory leaks, the application crashes !
If I deactivate Eurekalog, it crashes too !

Amazing, no ?

Is there any explanation ?

Thank you for your support and your great product.


Reply With Quote
  #2  
Old 10-Oct-2011, 03:14 PM
Kevin G. McCoy
Guest
 
Posts: n/a
Default Re: Strange...

On 10/10/2011 4:34 AM, Marcel wrote:
Quote:
Working with Delphi 2005 and Eurekalog 6.0.1.3.
When I trap memory leaks in Eurekalog, my application runs fine.

If I don't trap memory leaks, the application crashes !
If I deactivate Eurekalog, it crashes too !

Amazing, no ?
Nope :-)
Quote:
Is there any explanation ?
Some types of uninitialized variable bugs can be masked by shifting your EXE memory footprint.  If the uninitialized variable is filled with *reasonable* random  junk, then your program works.  If, due to changes in your program that move it around in memory and the same variable is now filled with *unreasonable* random junk, then your program behaves badly.

EL is simply pushing portions of your EXE higher in memory.  If it wasn't EL, then something else that caused the same shift could do the same thing.

You need to find out where the program crashes and look backwards from there.  The spot where it crashes is probably not where the problem is.   You need to find our which variable is causing the problem and that can be anywhere.

Good hunting!

Kevin G. McCoy


Reply With Quote
  #3  
Old 11-Oct-2011, 08:43 AM
Marcel
Guest
 
Posts: n/a
Default Re: Strange...

Thank you Kevin for your answer.

I can now imagine the work that I have to do...
Thank you :-((

Quote:
On 10/10/2011 4:34 AM, Marcel wrote:
Quote:
Working with Delphi 2005 and Eurekalog 6.0.1.3.
When I trap memory leaks in Eurekalog, my application runs fine.

If I don't trap memory leaks, the application crashes !
If I deactivate Eurekalog, it crashes too !

Amazing, no ?
Nope :-)
Quote:
Is there any explanation ?
Some types of uninitialized variable bugs can be masked by shifting your EXE memory footprint.  If the uninitialized variable is filled with *reasonable* random  junk, then your program works.  If, due to changes in your program that move it around in memory and the same variable is now filled with *unreasonable* random junk, then your program behaves badly.

EL is simply pushing portions of your EXE higher in memory.  If it wasn't EL, then something else that caused the same shift could do the same thing.

You need to find out where the program crashes and look backwards from there.  The spot where it crashes is probably not where the problem is.
You need to find our which variable is causing the problem and that can be anywhere.

Good hunting!

Kevin G. McCoy

Reply With Quote
  #4  
Old 19-Oct-2011, 11:00 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,

This sounds like a memory problem and Kevin was correct that slightest changes in application can hide or reveal a memory issue.

I can suggest don't turn off EurekaLog and its memory filter. Sooner or later you'll catch that error.

Or you can try to use other tool. For example, try to use FastMM in full debug mode or SafeMM.

Alternatively, you can reproduce bug in the debugger? If yes, then you can just debug it.
__________________
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

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