Lazarus
Programming => General => Topic started by: Neville on October 27, 2020, 07:52:27 pm
-
I have the new 2.0.10 Lazarus for Win64 with Win32 cross compiling option. I have no trouble generally, but one particular project compiles fine (for Win64), but will not run. I get an error 0xc000007b before the program even runs. It doesn't get as far as the first line in the project main file " Application.Scaled:=True;".
I recompiled to generate Win32 exe, and that runs absolutely fine. Has anyone any suggestions?
-
error 0xC000 007B (STATUS_INVALID_IMAGE_FORMAT) is most commonly caused by an attempt to load a dll that is not the same bitness as the process/executable.
From what you described, it seems likely that your 64bit application is attempting to load (either statically or dynamically) a 32bit dll.
HTH.
-
Thank you. I feel that you're probably right. I'm front-ending LP_Solve which comes as a DLL, almost certainly 32 bit, so that'll be the answer.
-
I'm front-ending LP_Solve...
You might want to take a look at https://github.com/avk959/LazLpSolveIDE