Lazarus

Programming => General => Topic started by: Neville on October 27, 2020, 07:52:27 pm

Title: Problem with Win64 exe inder Lazarus 2.0.10
Post 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? 
Title: Re: Problem with Win64 exe inder Lazarus 2.0.10
Post by: 440bx on October 27, 2020, 08:02:01 pm
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.
Title: Re: Problem with Win64 exe inder Lazarus 2.0.10
Post by: Neville on October 27, 2020, 09:09:23 pm
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.
Title: Re: Problem with Win64 exe inder Lazarus 2.0.10
Post by: avra on October 28, 2020, 11:17:23 am
I'm front-ending LP_Solve...
You might want to take a look at https://github.com/avk959/LazLpSolveIDE
TinyPortal © 2005-2018