1. stray console window
- Posted by ryanj Mar 13, 2010
- 1023 views
I think there is a bug that causes a console window to appear on a bound exe in windows, unless i misunderstand how to use the command line switches. There seems to be a discrepancy....
The docs say:
bind [-full_debug] [-list] [-quiet] [-out executable_file] [filename.ex] bindu [-full_debug] [-list] [-quiet] [-out executable_file] [filename.ex] bindw [-full_debug] [-list] [-quiet] [-out executable_file] [-con] [-icon filename.ico] [filename.exw]
but where are these files?
Instead, it seems i have to run
euiw %EUDIR%\source\bind.ex -w32 -full_debug -icon ems.ico ems.ex
to bind my program, which causes a console window to appear.
If i leave out -w32, it fails to bind and gives this message:
<0317>:: couldn't open eubd.exe! Press Enter
Apparently, -w32 is required, yet isn't even mentioned in the docs!? Am I doing something wrong, or is this a bug? I have to release this software by tomorrow!
2. Re: stray console window
- Posted by DerekParnell (admin) Mar 13, 2010
- 1045 views
I think there is a bug that causes a console window to appear on a bound exe in windows, unless i misunderstand how to use the command line switches. There seems to be a discrepancy....
There does seem to be a mistake here. It always creates a new console but it shouldn't when the "-con" switch is used. I'll look into this now.
The docs say:
bind [-full_debug] [-list] [-quiet] [-out executable_file] [filename.ex] bindu [-full_debug] [-list] [-quiet] [-out executable_file] [filename.ex] bindw [-full_debug] [-list] [-quiet] [-out executable_file] [-con] [-icon filename.ico] [filename.exw]
but where are these files?
Instead, it seems i have to run
euiw %EUDIR%\source\bind.ex -w32 -full_debug -icon ems.ico ems.ex
to bind my program, which causes a console window to appear.
If i leave out -w32, it fails to bind and gives this message:
<0317>:: couldn't open eubd.exe! Press Enter
Apparently, -w32 is required, yet isn't even mentioned in the docs!? Am I doing something wrong, or is this a bug? I have to release this software by tomorrow!
The docs are wrong. All you need is ...
bind [-full_debug] [-list] [-quiet] [-out executable_file] [-con] [-icon filename.ico] [filename.ex]
3. Re: stray console window
- Posted by DerekParnell (admin) Mar 13, 2010
- 1027 views
... I'll look into this now. ...
Ok, I just uploaded the fix for this. Get a fresh download of Eu4 and try again.
4. Re: stray console window
- Posted by ryanj Mar 13, 2010
- 993 views
Thanks, that's much better! Just in time for me to burn my installation CDs.
5. Re: stray console window
- Posted by DerekParnell (admin) Mar 13, 2010
- 1042 views
Thanks, that's much better! Just in time for me to burn my installation CDs.
There were a few issues but the main one was that it was using 'eub.exe' as the base executable and this is the 'character' mode program which always needs a console. I changed it to use 'eubw.exe' when the "-con" switch is not present and that is the pure windows mode program, which only opens a console when it needs one. Note that if the -con switch is used then 'eub.exe' is the base program.
The bind operation works by taking an IL interpreter program and appending the IL version of the Euphoria program to the end of it. There are two IL interpreters for the Windows platform - eub.exe and eubw.exe. You would use eub.exe if your Euphoria program is a console app otherwise you'd use eubw.exe if your app did its own windowing.