Exception while creating process makes IDE believe debugger is running
Original Reporter info from Mantis: uaply
-
Reporter name:
Original Reporter info from Mantis: uaply
- Reporter name:
Description:
I am using cross-compiling with Lazarus, and when I change target platform to Linux, compiled program naturally does not run under Windows.
IDE shows nice message:
'Exception while creating process: Failed to execute "C:\Projects\httpserver\simplehttpserver": 193'
But after failing launching application, IDE still believes application is running, and window's title is
'Lazarus IDE v1.1 - Simple HTTP server demo (running...)'
In this state I can't quit IDE normally, because Lazarus warns me with dialog "Stop the debugging?". Pressing [Stop] button doesn't help, so I am forced to kill Lazarus with process manager.
Most funny thing my Debugger type is set to "(none)" in configuration, so why it ask me about stopping debugging I can't comprehend.
Steps to reproduce:
The bug is not appears if native .exe file is corrupted - for some reason it appears only when I am trying to run cross-compiled program.
So to reproduce this bug cross-compiling should be properly configured and working.
I used a ready set of cross-compilation tools
i386-linux-ar.exe
i386-linux-as.exe
i386-linux-ld.exe
which I placed in 'lazarus\fpc\2.7.1\bin\i386-win32' folder. They could be found at ftp://ftp.freepascal.org/fpc/contrib/cross/mingw/win32crossbinutils2005.zip
Also a linux set of units is required, which I extracted from linux distribution 'fpc-2.7.1.i386-linux.tar.gz'. They should be placed in 'lazarus\fpc\2.7.1\units\i386-linux' folder.
Mantis conversion info:
- Mantis ID: 24809
- OS: Windows
- Build: Lazarus #:1.1 SVN Revision:42083
- Platform: x86
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 42358 (#380a764b)
- Monitored by: » @martin_frb (Martin Friebe)
- Target version: 1.2.0
- LazTarget: 1.2