madCollection and BCB64

contains all delphi packages mentioned below
Post Reply
AlexB
Posts: 4
Joined: Sun Feb 18, 2007 7:03 am

madCollection and BCB64

Post by AlexB »

Hi, madshi.
Thank you for your excellent tool.

In private correspondence, you told me that there is no official support for the c-builder-64, in particular because of problems with linking.

I managed to compile my test project (it just required manually adding all *.a files from the installation directory to it), but unfortunately the memory leak detection does not work: there is no resource leak report, I see only how a small window flickers on the program exit.

What do you think, are there any 'simple' reasons (I refer to the 'complex' reasons as the fact that the BCB64 is not supported :wink: ) for this? Any "simple" advice?
madshi
Site Admin
Posts: 10541
Joined: Sun Mar 21, 2004 5:25 pm

Re: madCollection and BCB64

Post by madshi »

Good question, I'm not entirely sure. You could try calling "madExcept.ReportLeaksNow(false)" as the last line in the finalization section of one of your units (ideally one which is finalized very late). The problem with calling this manually is that not all finalization sections have run through yet, which means that some allocations have not been freed yet, so there will probably be some false positive leak reports. Normally, madExcept waits until your EXE actually calls ExitProcess() and only then does the leak reporting. I'm not sure why that doesn't work in BCB64 projects.
AlexB
Posts: 4
Joined: Sun Feb 18, 2007 7:03 am

Re: madCollection and BCB64

Post by AlexB »

Unfortunately nothing helps... :(
Nor "mad" exception handling, nor leaks detection.

OK, Looks like I'll have to give up trying; unsupported is unsupported, period.
madshi
Site Admin
Posts: 10541
Joined: Sun Mar 21, 2004 5:25 pm

Re: madCollection and BCB64

Post by madshi »

Sorry about that... :cry:
Post Reply