Catch memory leaks in runtime packages

delphi package - automated exception handling
Post Reply
delphiman
Posts: 3
Joined: Thu Aug 25, 2016 5:17 pm

Catch memory leaks in runtime packages

Post by delphiman »

Hi, we work with a runtime application package .

Is possible configure the MadExcept to catch memory leaks in packages?

In several tests the MadExcept can not intercept the memory leaks.

Grateful.

Regarts,

Delphiman.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Catch memory leaks in runtime packages

Post by madshi »

I think I tested that at some point, but it's a long time ago, so I'm not 100% sure right now.

Have you tried recompiling the packages with madExcept activated? I think you only need to enable the options "link in madExcept settings" and "report resources leaks". If that still doesn't work, maybe you need to use "madExcept_.bpl" as a package instead of linking it into your EXE file? Have you tried that?

We're talking about a 32bit EXE, right?
delphiman
Posts: 3
Joined: Thu Aug 25, 2016 5:17 pm

Re: Catch memory leaks in runtime packages

Post by delphiman »

Hi, thanks for your return and tips. I had done all these tests before, but it did not work.

Have you tried recompiling the packages with madExcept activated?
R: Yes, the same mode with I use in EXE files.

I think you only need to enable the options "link in madExcept settings" and "report resources leaks". If that still doesn't work, maybe you need to use "madExcept_.bpl" as a package instead of linking it into your EXE file? Have you tried that?
R: Yes, I'll try too. But, unfortunately not work.

We're talking about a 32bit EXE, right?
R: Yes. My Application is 32 bits.

The only way I can test and verify memory leaks is to incorporate the package in a test EXE. I set up the project and can test. My goal was no longer need to do so. Is Test memory leaks in the official application.

You may have any other tips?

Regarts.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Catch memory leaks in runtime packages

Post by madshi »

I'll have to test this myself. Which Delphi version are we talking about? Might take a couple of days until I find time for this, though.
delphiman
Posts: 3
Joined: Thu Aug 25, 2016 5:17 pm

Re: Catch memory leaks in runtime packages

Post by delphiman »

We use Delphi XE.
With regard to time for you to test without problems.
I can work around the situation.

From already thank you very much for your attention.
Post Reply