1. Console windows
- Posted by André Drummond <andre_drummond at bol.com.br> Sep 15, 2005
- 553 views
Hi folks, does anyone knows how do I eliminate the console window that appears after a crash in a (translated to C) euphoria program? I already try the above:
function VarDump(object param) free_console() ... some code ... void = message_box(... some code ...) return 0 end function crash_routine(routine_id("VarDump"))
As you can see I have a routine "VarDump" that is called when the program crashes. I use the "free_console()" command to wipe out the error message but, after pressing the Ok button, a console windows appears saying "Press Enter...". How do I eliminate it? Thanks, André Drummond
2. Re: Console windows
- Posted by Greg Haberek <ghaberek at gmail.com> Sep 15, 2005
- 546 views
> How do I eliminate it?
abort(0)
Also, add a 'without warning' at the top of your app to prevent any warning messages, too. ~Greg
3. Re: Console windows
- Posted by don cole <doncole at pacbell.net> Sep 16, 2005
- 610 views
André Drummond wrote: > > Hi folks, > > does anyone knows how do I eliminate the console > window that appears after a crash in a > (translated to C) euphoria program? > > I already try the above: > }}} <eucode> > function VarDump(object param) > free_console() > ... some code ... > void = message_box(... some code ...) > return 0 > end function > > crash_routine(routine_id("VarDump")) > <font color="#330033"></eucode> {{{ </font> > > As you can see I have a routine "VarDump" that > is called when the program crashes. > I use the "free_console()" command to wipe out the > error message but, after pressing the Ok button, > a console windows appears saying "Press Enter...". > > How do I eliminate it? > > Thanks, > André Drummond > In your BIN folder right click ex.exe \properties\program\ checkbox 'Close on exit'. You can also this fram a shortcut to your program. Don Cole SF