AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Problem bei Programmstart - (0xc000007b)

Ein Thema von Tom-Tom · begonnen am 15. Jul 2020 · letzter Beitrag vom 16. Jul 2020
Antwort Antwort
TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.077 Beiträge
 
Delphi 10.4 Sydney
 
#1

AW: Problem bei Programmstart - (0xc000007b)

  Alt 15. Jul 2020, 10:29
@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)
  Mit Zitat antworten Zitat
Benutzerbild von Jasocul
Jasocul

Registriert seit: 22. Sep 2004
Ort: Delmenhorst
1.374 Beiträge
 
Delphi 11 Alexandria
 
#2

AW: Problem bei Programmstart - (0xc000007b)

  Alt 15. Jul 2020, 10:58
@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.
Peter
  Mit Zitat antworten Zitat
Tom-Tom

Registriert seit: 19. Apr 2010
Ort: Remscheid
25 Beiträge
 
#3

AW: Problem bei Programmstart - (0xc000007b)

  Alt 15. Jul 2020, 11:37
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
  Mit Zitat antworten Zitat
Tom-Tom

Registriert seit: 19. Apr 2010
Ort: Remscheid
25 Beiträge
 
#4

AW: Problem bei Programmstart - (0xc000007b)

  Alt 15. Jul 2020, 11:39
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".
  Mit Zitat antworten Zitat
TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.077 Beiträge
 
Delphi 10.4 Sydney
 
#5

AW: Problem bei Programmstart - (0xc000007b)

  Alt 15. Jul 2020, 11:52
Process Monitor an (Tutorials zum Tod schmeißen im Netz), Filter auf deinen Exe-Namen und los gehts!
  Mit Zitat antworten Zitat
Tom-Tom

Registriert seit: 19. Apr 2010
Ort: Remscheid
25 Beiträge
 
#6

AW: Problem bei Programmstart - (0xc000007b)

  Alt 15. Jul 2020, 11:56
Kommen 600 Einträge, nix zu erkennen.. Keine Exception oder so...
  Mit Zitat antworten Zitat
Rolf Frei

Registriert seit: 19. Jun 2006
655 Beiträge
 
Delphi 11 Alexandria
 
#7

AW: Problem bei Programmstart - (0xc000007b)

  Alt 15. Jul 2020, 12:42
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?
  Mit Zitat antworten Zitat
TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.077 Beiträge
 
Delphi 10.4 Sydney
 
#8

AW: Problem bei Programmstart - (0xc000007b)

  Alt 15. Jul 2020, 12:57
Kommen 600 Einträge, nix zu erkennen.. Keine Exception oder so...
Na ja, da wird ja nicht nur überall SUCCESS in der Spalte Result (normalerweise die sechste von links) drin stehen. Zeig uns doch mal die letzten 70 Einträge.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:32 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz