Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General Discussion » View Thread |
Messages 1 to 2 of 2 total |
Leak reporting with FastMM4 |
Sat, Jul 21 2007 5:56 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Finally cracked it using the supplied demo as an aid. SO for anyone else interested here's how to do it:
1. Copy FastMM_FullDebugMode.dll and BorlndMM.dll from the ....Demos\Replacement borlndmm DLL directory to your application code directory 2. Add .....Replacement BorlndMM DLL\FastMMDebugSupport.pas into your project 3. Add ShareMem as the first item in the .dpr's uses clause 4. in the begin..end section of the .dpr add ReportMemoryLeaksOnShutdown := DebugHook <> 0; SetMMLogFileName(PChar('C:\zap\Leaks.txt')); 5. Set the linker to add TD32 debug info Totally obvious and easy isn't it Roy Lambert |
Mon, Jul 23 2007 2:05 PM | Permanent Link |
Lance Rasmussen Jazzie Software Team Elevate | Roy,
sorry I didn't catch on ReportMemoryLeaksOnShutdown := DebugHook <> 0; earlier. I've been using that, but didn't think about it. The later I hadn't caught. Lance "Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message news:C25171C2-CD29-446E-BAC8-85E63ECD7FF9@news.elevatesoft.com... > Finally cracked it using the supplied demo as an aid. SO for anyone else > interested here's how to do it: > > 1. Copy > FastMM_FullDebugMode.dll and > BorlndMM.dll > from the ....Demos\Replacement borlndmm DLL directory to your application > code directory > > 2. Add .....Replacement BorlndMM DLL\FastMMDebugSupport.pas into your > project > > 3. Add ShareMem as the first item in the .dpr's uses clause > > 4. in the begin..end section of the .dpr add > ReportMemoryLeaksOnShutdown := DebugHook <> 0; > SetMMLogFileName(PChar('C:\zap\Leaks.txt')); > > 5. Set the linker to add TD32 debug info > > > Totally obvious and easy isn't it > > > Roy Lambert |
This web page was last updated on Thursday, March 28, 2024 at 08:36 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |