Forum > Windows
Why is an exe not running when Lazarus IDE is not used ?
WimVan:
All,
I have a very strange behavour and I hope someone can help me.
Situation
2 different PC's.
One with Windows10, Intel I7, 16 GB RAM, 64bit. I'll name this PC
The other one is also WIndows10, but i5, 16 GB RAM, 64 bit . A Laptop. I'll name it laptop
On both I installed the same Lazarus
1.8.4,
SVN; 57972
X86-64-win64-win32/win64
No extra packages are installed.
Next components are used:
-SQLconnect
-SQLtransaction
-SQLQuery
-Datasource
-DBgrid
-Buttom
Pagecontrol and tabsheets, labels, panels, edit ... and TImage
When I edit sources on the PC and compile them, the application opens and I can test it.
Outside Lazarus, the executable also runs correct on the PC and on the Laptop
Development of the same application (with the same sources) on the laptop is successful and created exe's runs also on the PC as on the Laptop.
SO far so good.
BUT, suddenly (I assume when adding a second form to the project) I have a very strange behavour.
1) development on the Laptop and on the PC can be done
But and now it becomes tricky
Any development on the PC is successful. I can even test the application by compiling and running it in the IDE.
Leaving Lazarus, the created exe is running correct on the PC.
But, when trying to run that exe on the Laptop, the exe is loaded and directly the exe is left. I see a flashup of blank window and directly the exe closes.
2) Move all sources to the Laptop. When I open Lazarus I can edit the project, sources.
But now, I can't run it. Compiling is successful without any error-remark. But, the application just flashes up and closes. I can't run the exe while developing.
Leaving Lazarus and trying to run the created executable is NOT successful. the exe is loaded and directly the exe is left. I see a flashup of blank window and directly the exe closes.
Someone can help me in this for me severe problem.
In the past I developed several little apps that run on the PC as well on the laptop, even when edited, created on the Laptop.
I think there is a problem with the second form but I'm not sure and I tried to test it, writing new little apps, bt I can not really place when. The only thing I know, once you can run it no more, you may delete the added form, remove all links to that forms, you can no more run it. In Lazarus, neither outside Lazarus and NO error is reported.
What the most strange item is, is the fact that the exe that was produced on the LAPTOP and can't been run there, is usable on the PC. Running the exe there is successful
CCRDude:
Sounds a lot like a DLL is missing or the wrong version on the laptop. Since you use a database, possibly one of those.
What I would do is use the debugger. Might be tedious, but step through the code line by line, and you'll find the culprit.
WimVan:
The Lazarus-deployement was and is identical on the Laptop and the PC,
The database is the same (works on an external HD) which is mounted with USB
the database-dll is the same on the Laptop ant the PC.
Next, I'll try the debugger.
wp:
--- Quote from: CCRDude on December 13, 2018, 09:18:47 am ---Sounds a lot like a DLL is missing or the wrong version on the laptop.
--- End quote ---
Or an antivirus issue. Antivirus software has become the enemy of software development these days. Do both computers have the same antivirus? Deactivate the antivirus on the laptop and see if it fixes the issue. I had to remove my BitDefender because it used to delete fpc and related tools. I am using now Windows Defender, no problems so far with it (although putting the Lazarus program and project folders on the white list is a MUST here too).
Thaddy:
--- Quote from: wp on December 13, 2018, 02:04:27 pm --- I am using now Windows Defender, no problems so far with it (although putting the Lazarus program and project folders on the white list is a MUST here too).
--- End quote ---
Yes? I also use just Windows Defender (which is quite good, actually) I didn't white-list anything. May be an OPM issue? Because I have no issues at all.
I also suspect that a database dll is missing or of the wrong bitness. So what's the database?
Navigation
[0] Message Index
[#] Next page