Delphi-PRAXiS
Seite 2 von 4     12 34      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Problem bei Programmstart - (0xc000007b) (https://www.delphipraxis.net/204930-problem-bei-programmstart-0xc000007b.html)

Tom-Tom 15. Jul 2020 09:57

AW: Problem bei Programmstart - (0xc000007b)
 
Es ist eine 32 Bit Anwendung, ich kann leider aufgrund einiger Komponenten keine 64Bit Anwendung daraus machen.
Ich kann das mit den Windows Komponenten auch nicht so richtig glauben - es hat ja auch vorher (Delphi 10.3) immer ohne
diese (dämlichen) C++ Runtimes etc. funktioniert.

Hab auch schon einige C++ Runtimes etc. installiert, das hilft alles nichts.

Ich guck mal, ob ich das was debuggen kann.. :-(

DANKE an ALLE !!!

Tom-Tom 15. Jul 2020 10:13

AW: Problem bei Programmstart - (0xc000007b)
 
@Peter: Alle DLLs und BPLs, die ich benötige, sind in dem Verzeichnis, in dem auch die EXE liegt.

TiGü 15. Jul 2020 10:29

AW: Problem bei Programmstart - (0xc000007b)
 
Zitat:

Zitat von Tom-Tom (Beitrag 1469623)
@Peter: Alle DLLs und BPLs, die ich benötige, sind in dem Verzeichnis, in dem auch die EXE liegt.

Na ja, Jasocul meint eher die DLLs von Windows.
Allein schon eine neu erstellte leere VCL-Anwendung lädt da so einiges:

Code:
Module Load: Project1.exe. Has Debug Info. Base Address: $00400000. Process Project1.exe (9120)
Module Load: ntdll.dll. No Debug Info. Base Address: $77AC0000. Process Project1.exe (9120)
Module Load: KERNEL32.dll. No Debug Info. Base Address: $75730000. Process Project1.exe (9120)
Module Load: KERNELBASE.dll. No Debug Info. Base Address: $77520000. Process Project1.exe (9120)
Module Load: SHELL32.dll. No Debug Info. Base Address: $76660000. Process Project1.exe (9120)
Module Load: ucrtbase.dll. No Debug Info. Base Address: $754B0000. Process Project1.exe (9120)
Module Load: CFGMGR32.dll. No Debug Info. Base Address: $77370000. Process Project1.exe (9120)
Module Load: SHCORE.dll. No Debug Info. Base Address: $75420000. Process Project1.exe (9120)
Module Load: msvcrt.dll. No Debug Info. Base Address: $77780000. Process Project1.exe (9120)
Thread Start: Thread ID: 240. Process Project1.exe (9120)
Module Load: RPCRT4.dll. No Debug Info. Base Address: $752C0000. Process Project1.exe (9120)
Module Load: SspiCli.dll. No Debug Info. Base Address: $75290000. Process Project1.exe (9120)
Module Load: CRYPTBASE.dll. No Debug Info. Base Address: $75280000. Process Project1.exe (9120)
Module Load: bcryptPrimitives.dll. No Debug Info. Base Address: $77720000. Process Project1.exe (9120)
Module Load: WINSPOOL.DRV. No Debug Info. Base Address: $6A8F0000. Process Project1.exe (9120)
Thread Start: Thread ID: 5240. Process Project1.exe (9120)
Module Load: SECHOST.dll. No Debug Info. Base Address: $762B0000. Process Project1.exe (9120)
Module Load: combase.dll. No Debug Info. Base Address: $75E80000. Process Project1.exe (9120)
Module Load: Windows.Storage.dll. No Debug Info. Base Address: $76DA0000. Process Project1.exe (9120)
Module Load: AppCore.dll. No Debug Info. Base Address: $76570000. Process Project1.exe (9120)
Module Load: COMCTL32.dll. No Debug Info. Base Address: $68B50000. Process Project1.exe (9120)
Module Load: bcrypt.dll. No Debug Info. Base Address: $764B0000. Process Project1.exe (9120)
Module Load: msvcp_win.dll. No Debug Info. Base Address: $76590000. Process Project1.exe (9120)
Module Load: GDI32.dll. No Debug Info. Base Address: $77A70000. Process Project1.exe (9120)
Module Load: win32u.dll. No Debug Info. Base Address: $764D0000. Process Project1.exe (9120)
Module Load: gdi32full.dll. No Debug Info. Base Address: $77910000. Process Project1.exe (9120)
Module Load: ADVAPI32.dll. No Debug Info. Base Address: $764F0000. Process Project1.exe (9120)
Module Load: profapi.dll. No Debug Info. Base Address: $76BE0000. Process Project1.exe (9120)
Module Load: USER32.dll. No Debug Info. Base Address: $76C00000. Process Project1.exe (9120)
Module Load: POWRPROF.dll. No Debug Info. Base Address: $76330000. Process Project1.exe (9120)
Module Load: UMPDC.dll. No Debug Info. Base Address: $76100000. Process Project1.exe (9120)
Module Load: IPHLPAPI.DLL. No Debug Info. Base Address: $71810000. Process Project1.exe (9120)
Module Load: PROPSYS.dll. No Debug Info. Base Address: $6F870000. Process Project1.exe (9120)
Module Load: SHLWAPI.dll. No Debug Info. Base Address: $778C0000. Process Project1.exe (9120)
Module Load: OLEAUT32.dll. No Debug Info. Base Address: $75380000. Process Project1.exe (9120)
Module Load: CRYPTSP.dll. No Debug Info. Base Address: $76490000. Process Project1.exe (9120)
Module Load: ole32.dll. No Debug Info. Base Address: $75810000. Process Project1.exe (9120)
Module Load: NETAPI32.dll. No Debug Info. Base Address: $6C5E0000. Process Project1.exe (9120)
Module Load: VERSION.dll. No Debug Info. Base Address: $75180000. Process Project1.exe (9120)
Thread Start: Thread ID: 12948. Process Project1.exe (9120)
Module Load: netutils.dll. No Debug Info. Base Address: $6C5D0000. Process Project1.exe (9120)
Module Load: IMM32.dll. No Debug Info. Base Address: $76220000. Process Project1.exe (9120)
Module Load: MSCTF.dll. No Debug Info. Base Address: $76380000. Process Project1.exe (9120)
Module Load: UxTheme.dll. No Debug Info. Base Address: $6A6A0000. Process Project1.exe (9120)
Module Load: WTSAPI32.dll. No Debug Info. Base Address: $6E3E0000. Process Project1.exe (9120)
Module Load: WINSTA.dll. No Debug Info. Base Address: $6BF10000. Process Project1.exe (9120)
Module Load: TextInputFramework.dll. No Debug Info. Base Address: $5A320000. Process Project1.exe (9120)
Module Load: CoreUIComponents.dll. No Debug Info. Base Address: $5A0C0000. Process Project1.exe (9120)
Module Load: CoreMessaging.dll. No Debug Info. Base Address: $5A030000. Process Project1.exe (9120)
Module Load: NTMARTA.dll. No Debug Info. Base Address: $6E590000. Process Project1.exe (9120)
Module Load: WinTypes.dll. No Debug Info. Base Address: $62500000. Process Project1.exe (9120)
Module Load: WinTypes.dll. No Debug Info. Base Address: $03030000. Process Project1.exe (9120)
Module Unload: WinTypes.dll. Process Project1.exe (9120)
Module Load: iertutil.dll. No Debug Info. Base Address: $69D90000. Process Project1.exe (9120)
Module Load: dwmapi.dll. No Debug Info. Base Address: $6A670000. Process Project1.exe (9120)

Jasocul 15. Jul 2020 10:58

AW: Problem bei Programmstart - (0xc000007b)
 
Zitat:

Zitat von TiGü (Beitrag 1469624)
Zitat:

Zitat von Tom-Tom (Beitrag 1469623)
@Peter: Alle DLLs und BPLs, die ich benötige, sind in dem Verzeichnis, in dem auch die EXE liegt.

Na ja, Jasocul meint eher die DLLs von Windows.

Richtig. Meine Erwähnung, dass ich das mit eigenen DLLs hatte, sollte nur als Beispiel dienen. Eine dieser DLLs musste ins Windows-Verzeichnis für DLLs, da viele meiner Anwendungen diese benötigen. Dabei hatte ich erst das Verzeichnis für 64 bit erwischt. Konnte bei 32-Bit-Anwendungen dann natürlich nicht funktionieren.

In deinem Fall sieht es aber mehr nach einer Verwechslung aus. Es wird also möglicherweise eine 64-Bit-DLL aufgerufen, obwohl eine 32-Bit-DLL benötigt wird.

Tom-Tom 15. Jul 2020 11:37

AW: Problem bei Programmstart - (0xc000007b)
 
hmm, ich hab ja auf die DLLs (wie in der Auflistung von TiGü) keinen Einfluss.

Ich kann ja nur die DLLs und BPLs beeinflussen, die"von mir" stammen. Wenn ich die aber alle in meinem Programmverzeichnis habe,
müssen die ja von Windows eingelesen werden. Das aktuelle Verzeichnis hat ja die höchste Priorität, wenn ein Programm eine DLL nachlädt.
Erst, wenn die DLL nicht im gleichen Verzeichnis ist, sucht Windows ja danach im Suchpfad.

Das kann aber doch nichts mit dem Delphi 10.4 zu tun haben. Also der Tatsache, dass das Programm nur auf dieser VM läuft und nirgendwo anders.
Also was ich meine: Compiliere ich die mit 10.3, sucht Windows die richtigen DLLs für den Start raus. Mit 10.4 sucht Windows auf einmal andere raus ?
Unwahrscheinlich, oder ?

Thomas

Tom-Tom 15. Jul 2020 11:39

AW: Problem bei Programmstart - (0xc000007b)
 
Ach ja, ich hab mal die 32 Bit Komponente aus dem Programm herausgenommen und das Programm unter 64Bit compiliert.

Jetzt kommt der Fehler auch, wenn ich auf der VM bzw. aus Delphi heraus starte. natürlich so früh, dass der Debugger noch nicht "greift".

TiGü 15. Jul 2020 11:52

AW: Problem bei Programmstart - (0xc000007b)
 
Process Monitor an (Tutorials zum Tod schmeißen im Netz), Filter auf deinen Exe-Namen und los gehts!

Tom-Tom 15. Jul 2020 11:56

AW: Problem bei Programmstart - (0xc000007b)
 
Kommen 600 Einträge, nix zu erkennen.. Keine Exception oder so...

Rolf Frei 15. Jul 2020 12:42

AW: Problem bei Programmstart - (0xc000007b)
 
Also wenn ich nach dem Fehler google stosse ich sofort auf diese Info:

Zitat:

Reasons of Windows error code 0xc000007b

The error code means an invalid image format. Specifically, you are attempting to start an application which is designed to run on 64-bit operating system. But your computer is running 32-bit Windows.
Inwieweit dir das aber weiterhilft? Hast du das airgend ein Micx von 32 und 64 bit Teilen in deinem Projekt? Kopierst du auf dem Ziel-PC eventuell eine 64 Bit anstatt der 32 Bit Version eines Packages?

Tom-Tom 15. Jul 2020 12:51

AW: Problem bei Programmstart - (0xc000007b)
 
Ich hab (bis auf meinen Versuch eben) noch keine einzige 64 Bit Anwendung erstellt.
So einen Irrtum kann ich ausschließen. (leider - wäre zu schön)

32Bit Anwendung auf 64 Bit Windows


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:12 Uhr.
Seite 2 von 4     12 34      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz