Access violation closing application ONLY in Delphi 10.4
Posted: Wed Jun 30, 2021 5:00 pm
Hi,
I've recently upgraded my project to Delphi 10.4.
Previous to this upgrade everyting was working fine.
Now, i get this crash report when closing the application:
compiled with : Delphi 10.4 Sydney
madExcept version : 5.1.1
callstack crc : $fd7ea850, $9451dc5e, $2a7f24a9
exception number : 1
exception class : EAccessViolation
exception message : Access violation at address 0041268C in module 'ZSRest.exe'. Read of address 583D173C.
main thread ($2948):
0041268c +010 ZSRest.exe System 204 +0 @IntfClear
0040f2a5 +17d ZSRest.exe System 204 +0 @FinalizeArray
0040f020 +10c ZSRest.exe System 204 +0 @FinalizeRecord
0040b034 +01c ZSRest.exe System 204 +0 TObject.CleanupInstance
0040ae5d +005 ZSRest.exe System 204 +0 TObject.FreeInstance
004bdfe5 +019 ZSRest.exe madExcept 17410 +3 InterceptClassDestroy
0067a320 +0c0 ZSRest.exe Vcl.Graphics 10669 +14 TWICImage.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
0054e7d4 +03c ZSRest.exe System.Classes TCollection.Clear
0054e662 +01a ZSRest.exe System.Classes TCollection.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
00a58a4a +00e ZSRest.exe Vcl.ImageCollection TImageCollectionItem.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
0054e7d4 +03c ZSRest.exe System.Classes TCollection.Clear
0054e662 +01a ZSRest.exe System.Classes TCollection.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
00a58cda +00e ZSRest.exe Vcl.ImageCollection TImageCollection.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
00a723b9 +015 ZSRest.exe Vcl.DBGrids TCustomDBGrid.Destroy@
0040c7ea +03e ZSRest.exe System 204 +0 FinalizeUnits
004bd5c8 +054 ZSRest.exe madExcept 17114 +36 InterceptFinalizeUnits
004bd5d8 +000 ZSRest.exe madExcept 17128 +0 InterceptHalt0FinalizeUnits
0040cc3c +0ac ZSRest.exe System 204 +0 @Halt0
031ec55e +092 ZSRest.exe ZSRest 1203 +14 initialization
75d8fa27 +017 KERNEL32.DLL BaseThreadInitThunk
I was able to put a breakpoint in Vcl.Graphics on TWICImage.Destroy.
However madExcept is actually triggered before that, i don't know where, but this is what ends up on the bugreport.
Any help would be much appreciated.
Thanks
I've recently upgraded my project to Delphi 10.4.
Previous to this upgrade everyting was working fine.
Now, i get this crash report when closing the application:
compiled with : Delphi 10.4 Sydney
madExcept version : 5.1.1
callstack crc : $fd7ea850, $9451dc5e, $2a7f24a9
exception number : 1
exception class : EAccessViolation
exception message : Access violation at address 0041268C in module 'ZSRest.exe'. Read of address 583D173C.
main thread ($2948):
0041268c +010 ZSRest.exe System 204 +0 @IntfClear
0040f2a5 +17d ZSRest.exe System 204 +0 @FinalizeArray
0040f020 +10c ZSRest.exe System 204 +0 @FinalizeRecord
0040b034 +01c ZSRest.exe System 204 +0 TObject.CleanupInstance
0040ae5d +005 ZSRest.exe System 204 +0 TObject.FreeInstance
004bdfe5 +019 ZSRest.exe madExcept 17410 +3 InterceptClassDestroy
0067a320 +0c0 ZSRest.exe Vcl.Graphics 10669 +14 TWICImage.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
0054e7d4 +03c ZSRest.exe System.Classes TCollection.Clear
0054e662 +01a ZSRest.exe System.Classes TCollection.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
00a58a4a +00e ZSRest.exe Vcl.ImageCollection TImageCollectionItem.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
0054e7d4 +03c ZSRest.exe System.Classes TCollection.Clear
0054e662 +01a ZSRest.exe System.Classes TCollection.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
00a58cda +00e ZSRest.exe Vcl.ImageCollection TImageCollection.Destroy
0040af5c +008 ZSRest.exe System 204 +0 TObject.Free
00a723b9 +015 ZSRest.exe Vcl.DBGrids TCustomDBGrid.Destroy@
0040c7ea +03e ZSRest.exe System 204 +0 FinalizeUnits
004bd5c8 +054 ZSRest.exe madExcept 17114 +36 InterceptFinalizeUnits
004bd5d8 +000 ZSRest.exe madExcept 17128 +0 InterceptHalt0FinalizeUnits
0040cc3c +0ac ZSRest.exe System 204 +0 @Halt0
031ec55e +092 ZSRest.exe ZSRest 1203 +14 initialization
75d8fa27 +017 KERNEL32.DLL BaseThreadInitThunk
I was able to put a breakpoint in Vcl.Graphics on TWICImage.Destroy.
However madExcept is actually triggered before that, i don't know where, but this is what ends up on the bugreport.
Any help would be much appreciated.
Thanks