View Issue Details

IDProjectCategoryView StatusLast Update
0004783JEDI Code LibraryJclUnitVersioningpublic2009-06-25 18:38
ReporterKarlheinzAssigned Tooutchy 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformOSWinXPOS Version
Product Version 
Target VersionFixed in VersionVersion 1.105 
Summary0004783: JclUnitVersioning is not working with FastMM4 in FullDebugMode
DescriptionIf I try to use the functions of JclUnitVersioning to get an overview about my files and I use FastMM4 with FullDebugMode on, I get in different applications an error.
I think ít has something to do with the DLL for FullDebugMode but can't find the reason.
I have a Demo program with all required files attached.
Please try with/without FullDebugMode in the INC File.
TagsNo tags attached.
Fixed in GIT commit
Fixed in SVN revision2790
IDE versionDelphi/C++Builder 2009

Relationships

related to 0004773 resolvedoutchy Error in IDE with JCl- 

Activities

2009-05-21 14:05

 

TestUnitVersionsWithFastMM4FullDebugMode.7z (134,438 bytes)

Karlheinz

2009-05-21 14:07

reporter   ~0015530

Sorry, I work with Delphi 2009.

USchuster

2009-05-30 18:44

manager   ~0015566

I've tried to repeat that with the latest JCL + JVCL SVN and Delphi 2009 (with Upd 3) and Delphi 2007 (with Dec 07 Update + Apr 08 Hotfix) and I was unfortunately not able to repeat any problem. To make sure that I am in FullDebugMode I introduced a memory leak.

My steps were:
- compiled your code without any changes (FullDebugMode was enabled in your .inc file)
- started the app from the IDE with debugging
- pressed the button
- scrolled by the cursor down key through the tree
- closed the dialog
- closed the main window which (does close the app)

- started the app from my favorite file manager and repeated the steps


Is there anything wrong with my steps?
Can you repeat it on another PC?

Karlheinz

2009-05-30 19:28

reporter   ~0015567

The steps are OK.
I checked it on another PC (very clean, Windows XP) with the same result.
I get directly an error.
I will upload my self compiled exe.

2009-05-30 19:29

 

testprunitv.exe (1,328,128 bytes)

Karlheinz

2009-05-30 20:28

reporter   ~0015571

That is the Call Stack

:7c812afb kernel32.RaiseException + 0x52
:0040456c NotifyNonDelphiException + $1C
:7c91327a ntdll.RtlConvertUlongToLargeInteger + 0x3c
:7c91e48a ntdll.KiUserExceptionDispatcher + 0xe
:00405406 @InternalUStrFromLStr + $A
:004afaaf TUnitVersion.RCSfile + $13
JvJclUnitVersioningBrowser.ShowUnitVersioning(???)
testunitv.TForm2.Button1Click(???)
:004ea48f TForm2.Button1Click + $7
:00486318 TWinControl.WndProc + $518
:0044bed5 TButtonControl.WndProc + $71
:00486468 DoControlMsg + $28
:00486318 TWinControl.WndProc + $518
:0049a571 TCustomForm.WndProc + $599
:00485a2f TWinControl.MainWndProc + $2F
:0042dba6 StdWndProc + $16
:7e368734 USER32.GetDC + 0x6d
:7e368816 ; C:\WINDOWS\system32\USER32.dll
:7e37927b ; C:\WINDOWS\system32\USER32.dll
:7e3792e3 USER32.SendMessageW + 0x49
:773c7354 ; C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
:773c7436 ; C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
:773c973b ; C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
:7e368734 USER32.GetDC + 0x6d
:7e368816 ; C:\WINDOWS\system32\USER32.dll
:7e37a013 USER32.IsWindowUnicode + 0xa1
:7e37a039 USER32.CallWindowProcW + 0x1b
:00486414 TWinControl.DefaultHandler + $DC
:00486318 TWinControl.WndProc + $518
:0044bed5 TButtonControl.WndProc + $71
:0042dba6 StdWndProc + $16
:7e368734 USER32.GetDC + 0x6d
:7e368816 ; C:\WINDOWS\system32\USER32.dll
:7e3689cd ; C:\WINDOWS\system32\USER32.dll
:7e368a10 USER32.DispatchMessageW + 0xf
:004a2c0e TApplication.ProcessMessage + $122

Karlheinz

2009-05-30 20:35

reporter   ~0015572

JCl Exception Message

------------------------------------------------------------------------------
Exception log with detailed tech info. Generated on 30.05.2009 20:33:12.
You may send it to the application vendor, helping him to understand what had happened.
 Application title: testprunitv
 Application file: C:\Dokumente und Einstellungen\KHJL\Eigene Dateien\RAD Studio\Projects\testprunitv.exe
------------------------------------------------------------------------------
Exception class: EAccessViolation
Exception message: Access violation at address 004061C0 in module 'testprunitv.exe'. Read of address FFFFFFF8.
Exception address: 004061C0
------------------------------------------------------------------------------
Stack list, generated 30.05.2009 20:33:10
[004061C0]{testprunitv.exe} System.@UStrSetLength
[00405F2C]{testprunitv.exe} System.InternalUStrFromPCharLen
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[00411D65]{testprunitv.exe} SysUtils.StrLCopy
[004263F4]{testprunitv.exe} Classes.TThreadList.UnlockList
[0043958C]{testprunitv.exe} Graphics.FreeMemoryContexts
[00487350]{testprunitv.exe} Controls.TWinControl.MainWndProc
[00487365]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042E97C]{testprunitv.exe} Classes.StdWndProc
[004626CD]{testprunitv.exe} ComCtrls.TTreeNodes.GetNode
[00411D65]{testprunitv.exe} SysUtils.StrLCopy
[00464637]{testprunitv.exe} ComCtrls.TCustomTreeView.CNNotify
[0046476D]{testprunitv.exe} ComCtrls.TCustomTreeView.CNNotify
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[0046482D]{testprunitv.exe} ComCtrls.TCustomTreeView.WndProc
[00483732]{testprunitv.exe} Controls.TControl.WndProc
[00487D87]{testprunitv.exe} Controls.DoControlMsg
[004887A5]{testprunitv.exe} Controls.TWinControl.WMNotify
[00483732]{testprunitv.exe} Controls.TControl.WndProc
[00435B06]{testprunitv.exe} Graphics.TCanvas.Unlock
[00464322]{testprunitv.exe} ComCtrls.TCustomTreeView.CNNotify
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[0046482D]{testprunitv.exe} ComCtrls.TCustomTreeView.WndProc
[00483358]{testprunitv.exe} Controls.TControl.Perform
[00487D87]{testprunitv.exe} Controls.DoControlMsg
[004887A5]{testprunitv.exe} Controls.TWinControl.WMNotify
[00483732]{testprunitv.exe} Controls.TControl.WndProc
[0048AB0B]{testprunitv.exe} Controls.TWinControl.GetClientRect
[00435B06]{testprunitv.exe} Graphics.TCanvas.Unlock
[00464322]{testprunitv.exe} ComCtrls.TCustomTreeView.CNNotify
[0046476D]{testprunitv.exe} ComCtrls.TCustomTreeView.CNNotify
[00483732]{testprunitv.exe} Controls.TControl.WndProc
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[004263F4]{testprunitv.exe} Classes.TThreadList.UnlockList
[0043958C]{testprunitv.exe} Graphics.FreeMemoryContexts
[00487350]{testprunitv.exe} Controls.TWinControl.MainWndProc
[00487365]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042E97C]{testprunitv.exe} Classes.StdWndProc
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[004263F4]{testprunitv.exe} Classes.TThreadList.UnlockList
[0043958C]{testprunitv.exe} Graphics.FreeMemoryContexts
[00487350]{testprunitv.exe} Controls.TWinControl.MainWndProc
[00487365]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042E97C]{testprunitv.exe} Classes.StdWndProc
[00487D33]{testprunitv.exe} Controls.TWinControl.DefaultHandler
[00483732]{testprunitv.exe} Controls.TControl.WndProc
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[004263F4]{testprunitv.exe} Classes.TThreadList.UnlockList
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[00487350]{testprunitv.exe} Controls.TWinControl.MainWndProc
[00487365]{testprunitv.exe} Controls.TWinControl.MainWndProc
[004263F4]{testprunitv.exe} Classes.TThreadList.UnlockList
[0043958C]{testprunitv.exe} Graphics.FreeMemoryContexts
[00487350]{testprunitv.exe} Controls.TWinControl.MainWndProc
[00487365]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042E97C]{testprunitv.exe} Classes.StdWndProc
[0040A9F5]{testprunitv.exe} FastMM4.FastFreeMem
[0040BF28]{testprunitv.exe} FastMM4.DebugFreeMem
[0040BF3D]{testprunitv.exe} FastMM4.DebugFreeMem
[00405401]{testprunitv.exe} System.@InternalUStrFromLStr
[004106FC]{testprunitv.exe} SysUtils.Trim
[004B159E]{testprunitv.exe} JclUnitVersioning.TUnitVersion.RCSfile
[004F3387]{testprunitv.exe} JvJclUnitVersioningBrowser.TJvJclUnitVersioningBrowser.ShowUnitVersioning (Line 225, "JvJclUnitVersioningBrowser.pas" + 87)
[004F2B35]{testprunitv.exe} JvJclUnitVersioningBrowser.ShowUnitVersioning (Line 79, "JvJclUnitVersioningBrowser.pas" + 3)
[004F3EAE]{testprunitv.exe} testunitv.TForm2.Button1Click (Line 37, "testunitv.pas" + 0)
[00483C9B]{testprunitv.exe} Controls.TControl.Click
[0044D296]{testprunitv.exe} StdCtrls.TCustomButton.Click
[0044DD04]{testprunitv.exe} StdCtrls.TCustomButton.CNCommand
[00483732]{testprunitv.exe} Controls.TControl.WndProc
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[0044CF5C]{testprunitv.exe} StdCtrls.TButtonControl.WndProc
[00483358]{testprunitv.exe} Controls.TControl.Perform
[00487D87]{testprunitv.exe} Controls.DoControlMsg
[00488783]{testprunitv.exe} Controls.TWinControl.WMCommand
[0049F0E0]{testprunitv.exe} Forms.TCustomForm.WMCommand
[00483732]{testprunitv.exe} Controls.TControl.WndProc
[0042E97C]{testprunitv.exe} Classes.StdWndProc
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[004263F4]{testprunitv.exe} Classes.TThreadList.UnlockList
[0049C050]{testprunitv.exe} Forms.TCustomForm.WndProc
[00487350]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042E97C]{testprunitv.exe} Classes.StdWndProc
[00487D33]{testprunitv.exe} Controls.TWinControl.DefaultHandler
[004840B8]{testprunitv.exe} Controls.TControl.WMLButtonUp
[00483732]{testprunitv.exe} Controls.TControl.WndProc
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[004878BA]{testprunitv.exe} Controls.TWinControl.WndProc
[0049C050]{testprunitv.exe} Forms.TCustomForm.WndProc
[004263F4]{testprunitv.exe} Classes.TThreadList.UnlockList
[0043958C]{testprunitv.exe} Graphics.FreeMemoryContexts
[00487543]{testprunitv.exe} Controls.TWinControl.IsControlMouseMsg
[00487C37]{testprunitv.exe} Controls.TWinControl.WndProc
[0044CF5C]{testprunitv.exe} StdCtrls.TButtonControl.WndProc
[00487350]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042E97C]{testprunitv.exe} Classes.StdWndProc
[0042F02E]{testprunitv.exe} Contnrs.TComponentList.GetItems
[004A46ED]{testprunitv.exe} Forms.TApplication.ProcessMessage
[004A4732]{testprunitv.exe} Forms.TApplication.HandleMessage
[004A4A5D]{testprunitv.exe} Forms.TApplication.Run
[005041D9]{testprunitv.exe} testprunitv.testprunitv (Line 17, "" + 4)
------------------------------------------------------------------------------
System : Windows XP Professional, Version: 5.1, Build: A28, "Service Pack 3"
Processor: Intel, Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 2000 MHz MMX SSE SSE2 SSE3 SSSE3 64 bits DEP
Memory: 2046; free 1119
Display : 1680x1050 pixels, 32 bpp
------------------------------------------------------------------------------
List of loaded modules:
[00400000] C:\Dokumente und Einstellungen\KHJL\Eigene Dateien\RAD Studio\Projects\testprunitv.exe
           (no module version info)
[00600000] C:\Dokumente und Einstellungen\KHJL\Eigene Dateien\RAD Studio\Projects\FastMM_FullDebugMode.dll
<00400000> 1.45.0.4 - 1.45.0.4
           FastMM FullDebugMode Support DLL
[5B0F0000] C:\WINDOWS\system32\uxtheme.dll
           6.0.2900.5512 - 6.00.2900.5512 (xpsp.080413-2105)
           Microsoft UxTheme-Bibliothek
[71A80000] C:\WINDOWS\system32\mpr.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-0852)
           Router-DLL für Mehrfachanbieter
[72F70000] C:\WINDOWS\system32\winspool.drv
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-0852)
           Windows-Spoolertreiber
[746A0000] C:\WINDOWS\system32\MSCTF.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           MSCTF-Server-DLL
[75250000] C:\WINDOWS\system32\msctfime.ime
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Microsoft Text Frame Work Service IME
[76320000] C:\WINDOWS\system32\msimg32.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           GDIEXT Client DLL
[76330000] C:\WINDOWS\system32\IMM32.DLL
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Windows XP IMM32 API Client DLL
[76350000] C:\WINDOWS\system32\comdlg32.dll
           6.0.2900.5512 - 6.00.2900.5512 (xpsp.080413-2105)
           DLL für gemeinsame Dialoge
[76BB0000] C:\WINDOWS\system32\PSAPI.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Process Status Helper
[770F0000] C:\WINDOWS\system32\oleaut32.dll
           5.1.2600.5512 - 5.1.2600.5512
[773A0000] C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
           6.0.2900.5512 - 6.0 (xpsp.080413-2105)
           User Experience Controls Library
[774B0000] C:\WINDOWS\system32\ole32.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2108)
           Microsoft OLE für Windows
[77B10000] C:\WINDOWS\system32\apphelp.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Application Compatibility Client Library
[77BD0000] C:\WINDOWS\system32\version.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Version Checking and File Installation Libraries
[77BE0000] C:\WINDOWS\system32\msvcrt.dll
           7.0.2600.5512 - 7.0.2600.5512 (xpsp.080413-2111)
           Windows NT CRT DLL
[77DA0000] C:\WINDOWS\system32\ADVAPI32.dll
           5.1.2600.5755 - 5.1.2600.5755 (xpsp_sp3_gdr.090206-1234)
           Erweitertes Windows 32 Base-API
[77E50000] C:\WINDOWS\system32\RPCRT4.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2108)
           Remote Procedure Call Runtime
[77EF0000] C:\WINDOWS\system32\GDI32.dll
           5.1.2600.5698 - 5.1.2600.5698 (xpsp_sp3_gdr.081022-1932)
           GDI Client DLL
[77F40000] C:\WINDOWS\system32\SHLWAPI.dll
           6.0.2900.5512 - 6.00.2900.5512 (xpsp.080413-2105)
           Shell Light-weight Utility Library
[77FC0000] C:\WINDOWS\system32\Secur32.dll
           5.1.2600.5753 - 5.1.2600.5753 (xpsp_sp3_gdr.090203-1302)
           Security Support Provider Interface
[7C800000] C:\WINDOWS\system32\kernel32.dll
           5.1.2600.5781 - 5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)
           Client-DLL für Windows NT-Basis-API
[7C910000] C:\WINDOWS\system32\ntdll.dll
           5.1.2600.5755 - 5.1.2600.5755 (xpsp_sp3_gdr.090206-1234)
           DLL für NT-Layer
[7E360000] C:\WINDOWS\system32\USER32.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Client-DLL für Windows XP USER-API
[7E670000] C:\WINDOWS\system32\SHELL32.dll
           6.0.2900.5622 - 6.00.2900.5622 (xpsp_sp3_gdr.080617-1319)
           Allgemeine Windows-Shell-DLL
------------------------------------------------------------------------------
Active Controls hierarchy:
TButton "Button1"
TForm2 "Form2"
------------------------------------------------------------------------------

2009-05-30 22:29

 

Mantis4783_testunitv_wo_JVCL.7z (1,358 bytes)

USchuster

2009-05-30 22:31

manager   ~0015573

I can't repeat a problem with your exe on Vista x64.
I removed the dependency to the JVCL in your example and uploaded the adjusted main form. Button2 puts all unit versions into the memo and when you scroll through the memo the label below should get updated.

Does the problem still repeat?

Karlheinz

2009-05-30 22:42

reporter   ~0015575

Same Problem with and without JCL Exception log.

------------------------------------------------------------------------------
Exception log with detailed tech info. Generated on 30.05.2009 22:39:40.
You may send it to the application vendor, helping him to understand what had happened.
 Application title: testprunitv
 Application file: C:\Dokumente und Einstellungen\KHJL\Eigene Dateien\RAD Studio\Projects\testprunitv.exe
------------------------------------------------------------------------------
Exception class: EAccessViolation
Exception message: Access violation at address 00405DD8 in module 'testprunitv.exe'. Read of address FFFFFFF8.
Exception address: 00405DD8
------------------------------------------------------------------------------
Stack list, generated 30.05.2009 22:39:34
[00405DD8]{testprunitv.exe} System.@UStrSetLength
[00405B44]{testprunitv.exe} System.InternalUStrFromPCharLen
[0043191F]{testprunitv.exe} Graphics.TCanvas.MoveTo
[00431C3D]{testprunitv.exe} Graphics.TCanvas.GetPenPos
[00431D87]{testprunitv.exe} Graphics.TCanvas.SetHandle
[00458235]{testprunitv.exe} Controls.TWinControl.PaintControls
[00457FCD]{testprunitv.exe} Controls.TWinControl.PaintHandler
[00457E37]{testprunitv.exe} Controls.TWinControl.DefaultHandler
[00457E51]{testprunitv.exe} Controls.TWinControl.DefaultHandler
[0043F8E3]{testprunitv.exe} StdCtrls.TCustomEdit.DefaultHandler
[00404153]{testprunitv.exe} System.TObject.Dispatch
[00453836]{testprunitv.exe} Controls.TControl.WndProc
[00457D3B]{testprunitv.exe} Controls.TWinControl.WndProc
[004238C8]{testprunitv.exe} Classes.TThreadList.UnlockList
[00434D98]{testprunitv.exe} Graphics.FreeMemoryContexts
[00457454]{testprunitv.exe} Controls.TWinControl.MainWndProc
[00457469]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042B51C]{testprunitv.exe} Classes.StdWndProc
[0040A2E5]{testprunitv.exe} FastMM4.FastFreeMem
[0040B818]{testprunitv.exe} FastMM4.DebugFreeMem
[0040B82D]{testprunitv.exe} FastMM4.DebugFreeMem
[00405289]{testprunitv.exe} System.@InternalUStrFromLStr
[0040FBFC]{testprunitv.exe} SysUtils.Trim
[004756D6]{testprunitv.exe} JclUnitVersioning.TUnitVersion.RCSfile
[004835C6]{testprunitv.exe} testunitv.TForm2.Button2Click (Line 62, "testunitv.pas" + 6)
[00453D9F]{testprunitv.exe} Controls.TControl.Click
[00440766]{testprunitv.exe} StdCtrls.TCustomButton.Click
[004411D4]{testprunitv.exe} StdCtrls.TCustomButton.CNCommand
[00453836]{testprunitv.exe} Controls.TControl.WndProc
[00457D3B]{testprunitv.exe} Controls.TWinControl.WndProc
[0044042C]{testprunitv.exe} StdCtrls.TButtonControl.WndProc
[00453470]{testprunitv.exe} Controls.TControl.Perform
[00457E8B]{testprunitv.exe} Controls.DoControlMsg
[00458887]{testprunitv.exe} Controls.TWinControl.WMCommand
[0046DE38]{testprunitv.exe} Forms.TCustomForm.WMCommand
[00453836]{testprunitv.exe} Controls.TControl.WndProc
[0042B51C]{testprunitv.exe} Classes.StdWndProc
[00457D3B]{testprunitv.exe} Controls.TWinControl.WndProc
[004238C8]{testprunitv.exe} Classes.TThreadList.UnlockList
[0046ADA8]{testprunitv.exe} Forms.TCustomForm.WndProc
[00457454]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042B51C]{testprunitv.exe} Classes.StdWndProc
[00457E37]{testprunitv.exe} Controls.TWinControl.DefaultHandler
[004541BC]{testprunitv.exe} Controls.TControl.WMLButtonUp
[00453836]{testprunitv.exe} Controls.TControl.WndProc
[00457D3B]{testprunitv.exe} Controls.TWinControl.WndProc
[004579BE]{testprunitv.exe} Controls.TWinControl.WndProc
[0046ADA8]{testprunitv.exe} Forms.TCustomForm.WndProc
[004238C8]{testprunitv.exe} Classes.TThreadList.UnlockList
[00434D98]{testprunitv.exe} Graphics.FreeMemoryContexts
[00457647]{testprunitv.exe} Controls.TWinControl.IsControlMouseMsg
[00457D3B]{testprunitv.exe} Controls.TWinControl.WndProc
[0044042C]{testprunitv.exe} StdCtrls.TButtonControl.WndProc
[00457454]{testprunitv.exe} Controls.TWinControl.MainWndProc
[0042B51C]{testprunitv.exe} Classes.StdWndProc
[0042BBC6]{testprunitv.exe} Contnrs.TComponentList.GetItems
[004733A9]{testprunitv.exe} Forms.TApplication.ProcessMessage
[004733D6]{testprunitv.exe} Forms.TApplication.HandleMessage
[00473701]{testprunitv.exe} Forms.TApplication.Run
[00493C35]{testprunitv.exe} testprunitv.testprunitv (Line 17, "" + 4)
------------------------------------------------------------------------------
System : Windows XP Professional, Version: 5.1, Build: A28, "Service Pack 3"
Processor: Intel, Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 2000 MHz MMX SSE SSE2 SSE3 SSSE3 64 bits DEP
Memory: 2046; free 1283
Display : 1680x1050 pixels, 32 bpp
------------------------------------------------------------------------------
List of loaded modules:
[00400000] C:\Dokumente und Einstellungen\KHJL\Eigene Dateien\RAD Studio\Projects\testprunitv.exe
           (no module version info)
[00900000] C:\Dokumente und Einstellungen\KHJL\Eigene Dateien\RAD Studio\Projects\FastMM_FullDebugMode.dll
<00400000> 1.45.0.4 - 1.45.0.4
           FastMM FullDebugMode Support DLL
[5B0F0000] C:\WINDOWS\system32\uxtheme.dll
           6.0.2900.5512 - 6.00.2900.5512 (xpsp.080413-2105)
           Microsoft UxTheme-Bibliothek
[746A0000] C:\WINDOWS\system32\MSCTF.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           MSCTF-Server-DLL
[75250000] C:\WINDOWS\system32\msctfime.ime
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Microsoft Text Frame Work Service IME
[76320000] C:\WINDOWS\system32\msimg32.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           GDIEXT Client DLL
[76330000] C:\WINDOWS\system32\IMM32.DLL
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Windows XP IMM32 API Client DLL
[76BB0000] C:\WINDOWS\system32\PSAPI.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Process Status Helper
[770F0000] C:\WINDOWS\system32\oleaut32.dll
           5.1.2600.5512 - 5.1.2600.5512
[773A0000] C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
           6.0.2900.5512 - 6.0 (xpsp.080413-2105)
           User Experience Controls Library
[774B0000] C:\WINDOWS\system32\ole32.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2108)
           Microsoft OLE für Windows
[77B10000] C:\WINDOWS\system32\apphelp.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Application Compatibility Client Library
[77BD0000] C:\WINDOWS\system32\version.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Version Checking and File Installation Libraries
[77BE0000] C:\WINDOWS\system32\msvcrt.dll
           7.0.2600.5512 - 7.0.2600.5512 (xpsp.080413-2111)
           Windows NT CRT DLL
[77DA0000] C:\WINDOWS\system32\ADVAPI32.dll
           5.1.2600.5755 - 5.1.2600.5755 (xpsp_sp3_gdr.090206-1234)
           Erweitertes Windows 32 Base-API
[77E50000] C:\WINDOWS\system32\RPCRT4.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2108)
           Remote Procedure Call Runtime
[77EF0000] C:\WINDOWS\system32\GDI32.dll
           5.1.2600.5698 - 5.1.2600.5698 (xpsp_sp3_gdr.081022-1932)
           GDI Client DLL
[77F40000] C:\WINDOWS\system32\SHLWAPI.dll
           6.0.2900.5512 - 6.00.2900.5512 (xpsp.080413-2105)
           Shell Light-weight Utility Library
[77FC0000] C:\WINDOWS\system32\Secur32.dll
           5.1.2600.5753 - 5.1.2600.5753 (xpsp_sp3_gdr.090203-1302)
           Security Support Provider Interface
[7C800000] C:\WINDOWS\system32\kernel32.dll
           5.1.2600.5781 - 5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)
           Client-DLL für Windows NT-Basis-API
[7C910000] C:\WINDOWS\system32\ntdll.dll
           5.1.2600.5755 - 5.1.2600.5755 (xpsp_sp3_gdr.090206-1234)
           DLL für NT-Layer
[7E360000] C:\WINDOWS\system32\USER32.dll
           5.1.2600.5512 - 5.1.2600.5512 (xpsp.080413-2105)
           Client-DLL für Windows XP USER-API
------------------------------------------------------------------------------
Active Controls hierarchy:
TButton "Button2"
TForm2 "Form2"
------------------------------------------------------------------------------

USchuster

2009-05-30 22:56

manager   ~0015576

I made some test on W2k and noticed something else strange with FullDebugMode.

Does removing "virtual" from "TUnitVersioning.Add" help?

Means changing it from
  TUnitVersioning = class(TObject)
  private
    ...
    procedure Add(Instance: THandle; Info: PUnitVersionInfo); virtual;

to
  TUnitVersioning = class(TObject)
  private
    ...
    procedure Add(Instance: THandle; Info: PUnitVersionInfo); //virtual;

Karlheinz

2009-05-30 23:40

reporter   ~0015578

No difference with/without virtual.

function TUnitVersion.RCSfile: string;
var
  I: Integer;
begin
  Result := Trim(FInfo.RCSfile); <= here happens the failure

without FullDebugMode I can read in the IDE the full filename.
with FullDebugMode I can see only same symbols (see attached new picture)

2009-05-30 23:42

 

USchuster

2009-05-31 00:57

manager   ~0015582

Repeats with Delphi 2009 on W2k and the problem is very likely the address which JclUnitVersioning.GetNamedProcessAddress tries to use. I guess it is an address which FastMM has already aquired, because it reserves the memory top-down and not bottom-up. Since FastMM can use more RAM on 64-bit system the problem does obviously only occur on 32-bit systems.

I've no idea yet how to fix it :-( Andy created that code and maybe he has an idea how to fix it.

USchuster

2009-06-04 00:48

manager   ~0015601

I've committed a new solution by Andy in revision 2790.
Does this work?

Karlheinz

2009-06-04 08:12

reporter   ~0015602

The new solution is working for me in the test example and also in the other program.
The issue with 0004773 is also solved.

Thanks you both very much for your help!!

wpostma416

2009-06-09 20:07

developer   ~0015642

Latest SVN of JCLUnitVersioning now compiles again for Delphi 7. Yay.

Issue History

Date Modified Username Field Change
2009-05-21 14:05 Karlheinz New Issue
2009-05-21 14:05 Karlheinz File Added: TestUnitVersionsWithFastMM4FullDebugMode.7z
2009-05-21 14:05 Karlheinz IDE version => C#Builder 1
2009-05-21 14:07 Karlheinz Note Added: 0015530
2009-05-30 18:44 USchuster IDE version C#Builder 1 => Delphi/C++Builder 2009
2009-05-30 18:44 USchuster Note Added: 0015566
2009-05-30 18:44 USchuster Status new => feedback
2009-05-30 19:28 Karlheinz Note Added: 0015567
2009-05-30 19:29 Karlheinz File Added: testprunitv.exe
2009-05-30 20:28 Karlheinz Note Added: 0015571
2009-05-30 20:35 Karlheinz Note Added: 0015572
2009-05-30 22:29 USchuster File Added: Mantis4783_testunitv_wo_JVCL.7z
2009-05-30 22:31 USchuster Note Added: 0015573
2009-05-30 22:42 Karlheinz Note Added: 0015575
2009-05-30 22:56 USchuster Note Added: 0015576
2009-05-30 23:40 Karlheinz Note Added: 0015578
2009-05-30 23:42 Karlheinz File Added: FInfo.RCSfile with fullDebugMode.JPG
2009-05-31 00:57 USchuster Note Added: 0015582
2009-05-31 00:57 USchuster Status feedback => acknowledged
2009-05-31 00:59 USchuster Relationship added related to 0004773
2009-06-04 00:48 USchuster Note Added: 0015601
2009-06-04 00:48 USchuster Status acknowledged => feedback
2009-06-04 08:12 Karlheinz Note Added: 0015602
2009-06-09 20:07 wpostma416 Note Added: 0015642
2009-06-25 18:38 outchy Fixed in revision => 2790
2009-06-25 18:38 outchy Status feedback => resolved
2009-06-25 18:38 outchy Fixed in Version => Version 1.105
2009-06-25 18:38 outchy Resolution open => fixed
2009-06-25 18:38 outchy Assigned To => outchy