Office Assistant Package v3.36 Memory Leaks and AV on Close

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Office Assistant Package v3.36 Memory Leaks and AV on Close

Postby w2m » November 9th, 2008, 8:04 pm

Office Assistant Package v3.36 Demo with Delphi 2009 and Windows Vista

Eureka Log reports 444 memory leaks: Total size=57020 bytes when the demo is closed.

Unless the Actor is removed in FormDestroy an AV ocurs when closing the demo:
procedure TMainForm.FormDestroy(Sender: TObject);
begin
// This disables form to accept dragged files. This call is necessary.
DragAcceptFiles(Handle, False);
Assistant.ActorLibrary := EmptyStr;
end;

With Assistant.ActorLibrary := EmptyStr; in FormDestroy Eureka Log does not report any leaks.

There are no defines in the demo for Delphi 2009 so it will not compile without removing the defines.

Bill

EurekaLog 6.0.17

Application:
------------------------------------------------------
1.1 Start Date : Sun, 9 Nov 2008 14:56:18 -0500
1.2 Name/Description: OADemo.exe
1.3 Version Number :
1.4 Parameters :
1.5 Compilation Date: Sun, 9 Nov 2008 14:49:30 -0500
1.6 Up Time : 14 seconds

Exception:
----------------------------------------------------------------
2.1 Date : Sun, 9 Nov 2008 14:56:33 -0500
2.2 Address :
2.3 Module Name : OADemo.exe
2.4 Module Version:
2.5 Type : EMemoryLeak
2.6 Message : Memory Leak: Total size=57020 - Count=444.
2.7 ID : C92D
2.8 Count : 1
2.9 Status : New
2.10 Note :

User:
-------------------------------------------------------
3.1 ID : Bill
3.2 Name : Bill
3.3 Email :
3.4 Company :
3.5 Privileges: SeShutdownPrivilege - OFF
SeChangeNotifyPrivilege - ON
SeUndockPrivilege - OFF
SeIncreaseWorkingSetPrivilege - OFF
SeTimeZonePrivilege - OFF

Active Controls:
-------------------------------------------------------------------------------
4.1 Form Class : IEFrame
4.2 Form Text : DELPHI AREA • Post a new topic - Windows Internet Explorer
4.3 Control Class:
4.4 Control Text :

Computer:
-------------------------------------------------------------------------------
5.1 Name : BILL-PC
5.2 Total Memory : 2045 Mb
5.3 Free Memory : 847 Mb
5.4 Total Disk : 139.73 Gb
5.5 Free Disk : 63.96 Gb
5.6 System Up Time: 5 hours, 40 minutes, 31 seconds
5.7 Processor : Intel(R) Pentium(R) D CPU 3.00GHz
5.8 Display Mode : 1920 x 1200, 32 bit
5.9 Display DPI : 96
5.10 Video Card : NVIDIA GeForce 7300 GS (driver 7.15.11.5824 - RAM 256 MB)
5.11 Printer : Canon Inkjet MP450 Series (driver 6.0.6000.16386)

Operating System:
---------------------------------------
6.1 Type : Microsoft Windows Vista
6.2 Build # : 6000
6.3 Update :
6.4 Language: English
6.5 Charset : 0

Call Stack Information:
-----------------------------------------------------------------------------------
|Address |Module |Unit |Class |Procedure/Method |Line |
-----------------------------------------------------------------------------------
|+Memory Leak: Type=TCustomBalloon; Total size=2472; Count=1 |
|---------------------------------------------------------------------------------|
|00500A40|OADemo.exe |OADemo.dpr | | |15[4] |
|770F3831|kernel32.dll| | |BaseThreadInitThunk| |
|771EA9BB|ntdll.dll | | |LdrInitializeThunk | |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|---------------------------------------------------------------------------------|
| |
|+Memory Leak: Type=TOffice97Button; Total size=2268; Count=3 |
|---------------------------------------------------------------------------------|
|004F5C9D|OADemo.exe |oaBaloon.pas|TAssistantBalloon|CreateTipsButtons |2882[30]|
|004F47EC|OADemo.exe |oaBaloon.pas|TAssistantBalloon|OptionsChanged |2441[21]|
|004F2337|OADemo.exe |oaBaloon.pas|TAssistantBalloon|DoCreate |1427[6] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|---------------------------------------------------------------------------------|
| |
|+Memory Leak: Type=TOffice97Button; Total size=1512; Count=2 |
|---------------------------------------------------------------------------------|
|004F6D51|OADemo.exe |oaBaloon.pas|TAssistantBalloon|CreateGuideButtons |3262[62]|
|004F47F3|OADemo.exe |oaBaloon.pas|TAssistantBalloon|OptionsChanged |2442[22]|
|004F2337|OADemo.exe |oaBaloon.pas|TAssistantBalloon|DoCreate |1427[6] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|004F6DAD|OADemo.exe |oaBaloon.pas|TAssistantBalloon|CreateGuideButtons |3268[68]|
|004F47F3|OADemo.exe |oaBaloon.pas|TAssistantBalloon|OptionsChanged |2442[22]|
|004F2337|OADemo.exe |oaBaloon.pas|TAssistantBalloon|DoCreate |1427[6] |
|---------------------------------------------------------------------------------|
| |
|+Memory Leak: Type=TOffice97Button; Total size=1512; Count=2 |
|---------------------------------------------------------------------------------|
|004F6F66|OADemo.exe |oaBaloon.pas|TAssistantBalloon|CreateGuideButtons |3296[96]|
|004F47F3|OADemo.exe |oaBaloon.pas|TAssistantBalloon|OptionsChanged |2442[22]|
|004F2337|OADemo.exe |oaBaloon.pas|TAssistantBalloon|DoCreate |1427[6] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|---------------------------------------------------------------------------------|
| |
|+Memory Leak: Type=TOffice97Button; Total size=756; Count=1 |
|---------------------------------------------------------------------------------|
|004F7D39|OADemo.exe |oaBaloon.pas|TAssistantBalloon|CreateHintButtons |3640[20]|
|004F47FA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|OptionsChanged |2443[23]|
|004F2337|OADemo.exe |oaBaloon.pas|TAssistantBalloon|DoCreate |1427[6] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|---------------------------------------------------------------------------------|
| |
|+Memory Leak: Type=TOffice97Button; Total size=1512; Count=2 |
|---------------------------------------------------------------------------------|
|004F7E9B|OADemo.exe |oaBaloon.pas|TAssistantBalloon|CreateHintButtons |3662[42]|
|004F47FA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|OptionsChanged |2443[23]|
|004F2337|OADemo.exe |oaBaloon.pas|TAssistantBalloon|DoCreate |1427[6] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
|---------------------------------------------------------------------------------|
| |
|+Memory Leak: Type=TOffice97Button; Total size=1688; Count=2 |
|---------------------------------------------------------------------------------|
|004F8541|OADemo.exe |oaBaloon.pas|TAssistantBalloon|CreateQueryButtons |3844[20]|
|004F4801|OADemo.exe |oaBaloon.pas|TAssistantBalloon|OptionsChanged |2444[24]|
|004F2337|OADemo.exe |oaBaloon.pas|TAssistantBalloon|DoCreate |1427[6] |
|004F21EA|OADemo.exe |oaBaloon.pas|TAssistantBalloon|Create |1388[9] |
-----------------------------------------------------------------------------------

Modules Information:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|Handle |Name |Description |Version |Size |Modified |Path |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|00400000|OADemo.exe | | |1268224 |2008-11-09 14:49:32|D:\Users\Bill\Delphi 2009\Components\Delphi Area\Office Assistant\demo |
|00560000|ctagent.dll |ctagent |6.0.1.1242 |8704 |2007-02-12 21:47:14|D:\Windows\System32 |
|72340000|winspool.drv|Windows Spooler Driver |6.0.6000.16386 |255488 |2006-11-02 04:44:44|D:\Windows\system32 |
|73530000|wsock32.dll |Windows Socket 32-Bit DLL |6.0.6000.16386 |14848 |2006-11-02 04:46:16|D:\Windows\system32 |
|73930000|OLEACC.dll |Active Accessibility Core Component |4.2.5406.0 |214016 |2006-11-02 04:46:14|D:\Windows\system32 |
|73970000|winmm.dll |MCI API DLL |6.0.6000.16386 |193024 |2006-11-02 04:46:16|D:\Windows\system32 |
|73D50000|uxtheme.dll |Microsoft UxTheme Library |6.0.6000.16386 |240640 |2006-11-02 04:46:14|D:\Windows\system32 |
|746A0000|msimg32.dll |GDIEXT Client DLL |6.0.6000.16386 |4608 |2006-11-02 04:46:08|D:\Windows\system32 |
|74800000|comctl32.dll|User Experience Controls Library |6.10.6000.16386 |1648128 |2006-11-02 04:38:58|D:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100|
|75170000|version.dll |Version Checking and File Installation Libraries|6.0.6000.16386 |20480 |2006-11-02 04:46:14|D:\Windows\system32 |
|75A60000|PSAPI.DLL |Process Status Helper |6.0.6000.16386 |12288 |2006-11-02 04:46:14|D:\Windows\system32 |
|75A70000|NSI.dll |NSI User-mode interface DLL |6.0.6000.16386 |10240 |2006-11-02 04:46:14|D:\Windows\system32 |
|75A80000|ole32.dll |Microsoft OLE for Windows |6.0.6000.16386 |1314816 |2006-11-02 04:46:14|D:\Windows\system32 |
|75BD0000|msvcrt.dll |Windows NT CRT DLL |7.0.6000.16386 |681472 |2006-11-02 04:46:12|D:\Windows\system32 |
|75DB0000|ADVAPI32.dll|Advanced Windows 32 Base API |6.0.6000.16386 |770048 |2006-11-02 04:46:04|D:\Windows\system32 |
|75E80000|shell32.dll |Windows Shell Common Dll |6.0.6000.16680 |11315712|2008-04-23 23:51:40|D:\Windows\system32 |
|76950000|oleaut32.dll| |6.0.6000.16609 |558080 |2008-02-13 18:51:54|D:\Windows\system32 |
|769E0000|SHLWAPI.dll |Shell Light-weight Utility Library |6.0.6000.16386 |339968 |2006-11-02 04:46:14|D:\Windows\system32 |
|76A40000|MSCTF.dll |MSCTF Server DLL |6.0.6000.16386 |805888 |2006-11-02 04:46:08|D:\Windows\system32 |
|76B10000|GDI32.dll |GDI Client DLL |6.0.6000.16643 |296448 |2008-02-20 23:43:36|D:\Windows\system32 |
|76D70000|RPCRT4.dll |Remote Procedure Call Runtime |6.0.6000.16525 |788992 |2007-10-11 07:59:50|D:\Windows\system32 |
|76E40000|USP10.dll |Uniscribe Unicode script processor |1.626.6000.16386 |502784 |2006-11-02 04:46:14|D:\Windows\system32 |
|76EC0000|USER32.dll |Multi-User Windows USER API Client DLL |6.0.6000.16438 |633856 |2007-04-05 10:30:30|D:\Windows\system32 |
|76F60000|comdlg32.dll|Common Dialogs DLL |6.0.6000.16386 |454656 |2006-11-02 04:46:04|D:\Windows\system32 |
|770B0000|kernel32.dll|Windows NT BASE API Client DLL |6.0.6000.16386 |874496 |2006-11-02 04:46:06|D:\Windows\system32 |
|77190000|IMM32.DLL |Multi-User Windows IMM32 API Client DLL |6.0.6000.16386 |115200 |2006-11-02 04:46:06|D:\Windows\system32 |
|771B0000|ntdll.dll |NT Layer DLL |6.0.6000.16386 |1162656 |2006-11-02 04:47:28|D:\Windows\system32 |
|772D0000|LPK.DLL |Language Pack |6.0.6000.16386 |24064 |2006-11-02 04:46:06|D:\Windows\system32 |
|77330000|WS2_32.dll |Windows Socket 2.0 32-Bit DLL |6.0.6000.16386 |178688 |2006-11-02 04:46:16|D:\Windows\system32 |
|77360000|CLBCatQ.DLL |COM+ Configuration Catalog |2001.12.6930.16386|523776 |2006-11-02 04:46:04|D:\Windows\system32 |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Processes Information:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|ID |Name |Description |Version |Memory|Priority |Threads|Path |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|0 |[System Process] | | |0 | |2 | |
|4 |System | | |0 |Normal |114 | |
|276 |BSQLServer.exe |BlackfishSQL Server Launcher |8.0.3170.16989 |0 |Normal |4 | |
|344 |svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |4 | |
|400 |smss.exe |Windows Session Manager |6.0.6000.16386 |0 |Above-Normal|4 | |
|428 |ehsched.exe | | |0 |Normal |5 | |
|548 |csrss.exe |Client Server Runtime Process |6.0.6000.16386 |0 |High |11 | |
|552 |svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |5 | |
|596 |wininit.exe |Windows Start-Up Application |6.0.6000.16386 |0 |High |3 | |
|608 |csrss.exe |Client Server Runtime Process |6.0.6000.16386 |0 |High |13 | |
|640 |services.exe |Services and Controller app |6.0.6000.16386 |0 |Normal |6 | |
|652 |lsass.exe |Local Security Authority Process |6.0.6000.16386 |0 |Normal |10 | |
|660 |lsm.exe |Local Session Manager Service |6.0.6000.16386 |0 |Normal |10 | |
|700 |svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |7 | |
|776 |wuauclt.exe |Windows Update Automatic Updates |7.2.6001.784 |0 |Normal |2 |D:\Windows\system32 |
|808 |svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |7 | |
|840 |winlogon.exe |Windows Logon Application |6.0.6000.16386 |0 |High |3 | |
|904 |svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |8 | |
|936 |svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |11 | |
|988 |svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |21 | |
|1016|svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |49 | |
|1028|svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |50 | |
|1124|audiodg.exe |Windows Audio Device Graph Isolation |6.0.6000.16386 |0 |Normal |2 | |
|1160|SLsvc.exe |Microsoft Software Licensing Service |6.0.6000.16509 |0 |Normal |4 | |
|1200|svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |29 | |
|1220|PSIService.exe |nTitles PSIService |2.0.0.1 |0 |Normal |3 | |
|1340|svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |24 | |
|1560|aawservice.exe | | |0 |Normal |7 | |
|1572|aswUpdSv.exe | | |0 |Normal |3 | |
|1588|ashServ.exe | | |0 |High |29 | |
|1848|spoolsv.exe |Spooler SubSystem App |6.0.6000.16386 |0 |Normal |17 | |
|1872|svchost.exe |Host Process for Windows Services |6.0.6000.16386 |0 |Normal |18 | |
|2044|AppleMobileDeviceService.exe| | |0 |Normal |3 | |
|2084|SearchIndexer.exe |Microsoft Windows Search Indexer |6.0.6000.16386 |0 |Normal |14 | |
|2100|taskeng.exe |Task Scheduler Engine |6.0.6000.16386 |0 |Below-Normal|5 | |
|2228|iPodService.exe | | |0 |Normal |11 | |
|2252|WUDFHost.exe |Windows Driver Foundation - User-mode Driver Framework Host Process |6.0.6000.16386 |0 |Normal |6 | |
|2348|skypePM.exe |Skype Extras Manager |2.0.0.58 |0 |Normal |10 |D:\Program Files\Skype\Plugin Manager |
|2364|ashMaiSv.exe | | |0 |Normal |8 | |
|2384|ashWebSv.exe | | |0 |Normal |18 | |
|2772|Dwm.exe |Desktop Window Manager |6.0.6000.16386 |0 |High |6 |D:\Windows\system32 |
|2808|taskeng.exe |Task Scheduler Engine |6.0.6000.16386 |0 |Normal |17 |D:\Windows\system32 |
|2836|Explorer.EXE |Windows Explorer |6.0.6000.16549 |0 |Normal |29 |D:\Windows |
|3028|NinjaService.exe | | |0 |Normal |3 | |
|3068|WLLoginProxy.exe |WLLoginProxy.exe |4.100.313.1 |0 |Normal |6 |D:\Program Files\Common Files\Microsoft Shared\Windows Live |
|3076|mmc.exe |Microsoft Management Console |6.0.6000.16386 |0 |Normal |6 | |
|3104|sidebar.exe |Windows Sidebar |6.0.6000.16615 |0 |Normal |11 |D:\Program Files\Windows Sidebar |
|3180|ipoint.exe |IPoint.exe |6.10.157.0 |0 |Normal |6 |D:\Program Files\Microsoft IntelliPoint |
|3188|ashDisp.exe |avast! service GUI component |4.8.1227.0 |0 |Normal |7 |D:\Program Files\Alwil Software\Avast4 |
|3200|CTHELPER.EXE |CtHelper Application |6.0.1.1242 |0 |Normal |6 |D:\Windows\System32 |
|3288|TSVNCache.exe |TortoiseSVN status cache |1.5.0.13316 |0 |Normal |22 |D:\Program Files\TortoiseSVN\bin |
|3436|rundll32.exe |Windows host process (Rundll32) |6.0.6000.16386 |0 |Normal |1 |D:\Windows\System32 |
|3444|iTunesHelper.exe |iTunesHelper Module |7.3.1.3 |0 |Normal |12 |D:\Program Files\iTunes |
|3452|itype.exe |IType.exe |6.10.156.0 |0 |Normal |3 |D:\Program Files\Microsoft IntelliType Pro |
|3460|AAWTray.exe |AAWTray Application |1.0.0.1 |0 |Normal |2 |D:\Program Files\Lavasoft\Ad-Aware 2007 |
|3508|sidebar.exe |Windows Sidebar |6.0.6000.16615 |0 |Normal |15 |D:\Program Files\Windows Sidebar |
|3520|ehtray.exe |Media Center Tray Applet |6.0.6000.16386 |0 |Normal |2 |D:\Windows\ehome |
|3556|wmpnscfg.exe |Windows Media Player Network Sharing Service Configuration Application|11.0.6000.6324 |0 |Normal |6 |D:\Program Files\Windows Media Player |
|3608|Skype.exe |Skype |3.8.0.139 |0 |Normal |27 |D:\Program Files\Skype\Phone |
|3684|Open.exe | | |0 |Normal |1 | |
|3724|rundll32.exe |Windows host process (Rundll32) |6.0.6000.16386 |0 |Normal |3 |D:\Windows\System32 |
|3788|ehmsas.exe |Media Center Media Status Aggregator Service |6.0.6000.16386 |0 |Normal |3 |D:\Windows\ehome |
|3840|WmiPrvSE.exe |WMI Provider Host |6.0.6000.16386 |0 |Normal |6 | |
|4064|unsecapp.exe |Sink to receive asynchronous callbacks for WMI client application |6.0.6000.16386 |0 |Normal |2 |D:\Windows\system32\wbem |
|4856|vds.exe |Virtual Disk Service |6.0.6000.16386 |0 |Normal |12 | |
|4892|ehrecvr.exe | | |0 |Above-Normal|35 | |
|4960|OADemo.exe | | |0 |Normal |2 |D:\Users\Bill\Delphi 2009\Components\Delphi Area\Office Assistant\demo|
|5616|RBroker.exe |RegBroker Module |2.0.0.7 |0 |Normal |3 |D:\Program Files\PayPal\PayPal Plug-In |
|6084|iexplore.exe |Internet Explorer |7.0.6000.16711 |0 |Normal |29 |D:\Program Files\Internet Explorer |
|7144|ieuser.exe |Internet Explorer |6.0.6000.16711 |0 |Normal |5 |D:\Program Files\Internet Explorer |
|7924|bds.exe |CodeGear RAD Studio for Windows |12.0.3170.16989|0 |Normal |19 |D:\Program Files\CodeGear\RAD Studio\6.0\bin |
|7988|GDebug.exe |GExperts Debug Window |1.3.0.0 |0 |Normal |1 |D:\Program Files\GExperts for Delphi 2007 |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
w2m
w2m
Senior Member
Senior Member
 
Posts: 76
Joined: March 8th, 2003, 7:11 pm
Location: New York, USA

Re: Office Assistant Package v3.36 Memory Leaks and AV on Close

Postby Kambiz » November 10th, 2008, 5:40 am

I didn't know about Eureka Log. I downloaded its trial version and I amazed.

There was one memory leak: Delphi does not release the auto created form (TCustomBalloon) automatically!

Code: Select all
begin
  Application.Initialize;
  Application.Title := 'Office 97 Assistant Package for Delphi - Demo';
  Application.CreateForm(TMainForm, MainForm);
  Application.CreateForm(TCustomBalloon, CustomBalloon);
  Application.Run;
  CustomBalloon.Free; // Delphi 2009 Memory Leak Workaround
end.


But this memory leak was not what you are talking. I am suspicious that your Office Assistant package is using an out dated DELPHIAREA.INC file. This is the file that you should have:

Code: Select all
(* Compiler Settings *)

{$B-} // Complete Boolean Evaluation Off
{$R-} // Range Checking Off
{$Q-} // Overflow Checking Off
{$V-} // Var String Checking Off
{$T-} // Typed @ operator Off
{$X+} // Extended Syntax On
{$P+} // Open String Params On
{$O+} // Optimization On
{$IFDEF WIN32}
{$H+} // Use long strings by default
{$ENDIF}

(* Assume all the compilers we need are available *)

{$DEFINE COMPILER2005_UP}
{$DEFINE COMPILER7_UP}
{$DEFINE COMPILER6_UP}
{$DEFINE COMPILER5_UP}
{$DEFINE COMPILER4_UP}

(* Then detect the compilers not available *)

{$IFDEF VER150}           // Delphi 7
  {$UNDEF COMPILER2005_UP}
{$ENDIF}

{$IFDEF VER140}           // Delphi 6 & C++Builder 6
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
{$ENDIF}

{$IFDEF VER130}           // Delphi 5 & C++Builder 5
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
{$ENDIF}

{$IFDEF VER130}           // Delphi 5 & C++Builder 5
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
{$ENDIF}

{$IFDEF VER125}          // C++Builder 4
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
{$ENDIF}

{$IFDEF VER120}          // Delphi 4
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
{$ENDIF}

{$IFDEF VER110}          // C++Builder 3
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
{$ENDIF}

{$IFDEF VER100}          // Delphi 3
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
{$ENDIF}

{$IFDEF VER93}          // C++Builder 1
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
{$ENDIF}

{$IFDEF VER90}          // Delphi 2
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
{$ENDIF}

{$IFDEF VER80}          // Delphi 1
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
{$ENDIF}


In the new DELPHIAREA.INC, in opposite of before, I assumed that the compiler is the latest Delphi compiler and then detect the old known ones. In this way there is no need for defines for new Delphi compilers. Even in the above code, if you see I have defined COMPILER2005_UP, it is only for the Image Work package that uses inline functions of Delphi 2005 and higher, my other packages/components do not need this define.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Office Assistant Package v3.36 Memory Leaks and AV on Close

Postby w2m » November 11th, 2008, 10:01 pm

Hi Kambiz

The fix for Delphi 2009 seemed to work. I'll do some more testing.
The Office Assistant package zip file has the out dated DELPHIAREA.INC file in it. Others will report problems unless you replace it.

There are 3 more ways to check for memory leaks
1. fastmm4 shipped with Delphi 2009 - freeware
2. http://sourceforge.net/projects/fastmm/
This is similar to fastmm4 shipped with Delphi 2009... but has more stuff.
3. http://www.madshi.net/madExceptDescription.htm
Mad Except is similar to EurekaLog and is shareware or freeware depending how you use it.

These systems often find lots of errors and make finding leaks much easier.
Bill
w2m
w2m
Senior Member
Senior Member
 
Posts: 76
Joined: March 8th, 2003, 7:11 pm
Location: New York, USA

Re: Office Assistant Package v3.36 Memory Leaks and AV on Close

Postby Kambiz » November 12th, 2008, 4:31 am

Thank you.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 3 guests

cron