Re: exit options in 'Debug' mode
- From: "Andrew McDonald" <myrmecophagavir@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 4 Apr 2006 22:26:49 +0100
"ern" <erniedude@xxxxxxxxx> wrote...
I'm doing a console app in Visual C++. I wish to terminate the program
completely when my program encounters the exit( ) command (as opposed to
staying open until user press a key). Is this possible ?
The reason I'm doing this instead of just building in Release mode is
because (for some unknown and probably stupid reason), my app runs
unusably slow in 'Release' mode.
Suggestions for either problem are highly appreciated...
Don't you only get the press-a-key prompt when you run from within Visual
Studio? The console app should exit immediately when run from a console or
double-clicked, which is what your user would presumably do.
And you *really* should look at what's taking your release build so long...
easiest thing to do if you don't have a profiler is just to sprinkle some
timings around your functions, using e.g. QueryPerformanceCounter() and
QueryPerformanceFrequency(), and output the results somewhere.
--
Andrew
.
- References:
- exit options in 'Debug' mode
- From: ern
- exit options in 'Debug' mode
- Prev by Date: Re: Behaviour of an automatic static variable?
- Next by Date: Re: help compiler (hcw/hcrtf) missing in Visual Studio 2005?
- Previous by thread: Re: exit options in 'Debug' mode
- Next by thread: Behaviour of an automatic static variable?
- Index(es):
Relevant Pages
|
Loading