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