1. Console windows

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

new topic     » topic index » view message » categorize

2. Re: Console windows

> 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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Console windows

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu