简体   繁体   中英

Delphi XE7 crashses at shutdown

Since I installed Delphi XE7 I have this nasty crash as shutdown:

Description:
  Stopped working

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: bds.exe
  Application Version:  21.0.17707.5020
  Application Timestamp:    545bd62d
  Fault Module Name:    rtl210.bpl
  Fault Module Version: 21.0.17707.5020
  Fault Module Timestamp:   545bd940
  Exception Code:   c0000005
  Exception Offset: 00016a9c
  OS Version:   6.1.7601.2.1.0.768.3
  Locale ID:    1033

After I click the 'Close program' I get:

Exception EAccessViolation in module rtl210.bpl at 00016A9C.
Access violation at address 50066A9C in module 'rtl210.bpl'. Read of address 075F2AF8.

I checked the call stack but it doesn't really makes any sense.

To see the call stack I started Delphi, then in 'Load process' I entered Delphi's path ( "C:\\Delphi\\XE7\\bin\\bds.exe" ).
I cannot set the '-p delphi' parameter in 'Parameters' box because when the second Delphi process is started it will complain that it cannot access the license file (which is blocked by the first Delphi process).

Call stack:

:50066a9c rtl210.@System@@IntfClear$qqrr44System@%DelphiInterface$17System@IInterface% + 0x10
:08baffdd fmx210.@System@Generics@Collections@%TList__1$56System@%DelphiInterface$29Fmx@Behaviormanager@IListener%%@SetCount$qqri + 0x49
:50061099 rtl210.@System@@Halt0$qqrv + 0xb1
:77378bd4 ntdll.wcsncmp + 0x88
:77342710 ; ntdll.dll
:7737cb10 ntdll.LdrUnloadDll + 0x4a
:753b8be4 KERNELBASE.FreeLibrary + 0x82
:2063a191 coreide210.@Exptmain@TExpertLib@$bdtr$qqrv + 0xa9
:5005f10b rtl210.@System@TObject@Free$qqrv + 0xb
:5070ba40 vcl210.@Vcl@Forms@TCustomForm@$bdtr$qqrv + 0x58
:210f57c0 designide210.@Deskform@TDesktopForm@$bdtr$qqrv + 0x40
:761aee1c kernel32.BaseThreadInitThunk + 0x12
:7738399b ntdll.RtlInitializeExceptionChain + 0xef
:7738396e ntdll.RtlInitializeExceptionChain + 0xc2

It says something about FMX but I never do FMX projects (still too unripe to be used). So I disable it.
What could cause the crash?

This is a Delphi bug

SOLUTION: Enable 'FMX Standard Components' package.

Details: I turned out that I had the 'FMX Standard Components' package disabled - Seems logical to disable such a large library since I don't use it. Well... Delphi don't like that! I enabled the library back and now I have no crash!

I could have delete the question since nobody answered posted any answer but I thought it will be useful to keep it. It documents a very important feature of Delphi: crash when the developer won't use FMX lib :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM