Re: exit options in 'Debug' mode



"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


.



Relevant Pages

  • Re: becoming a daemon
    ... what is the reason to create child and then ... so that the parent won't get SIGCLDs anymore. ... _exit is the system call; exitis the libc wrapper that also ...
    (comp.unix.programmer)
  • Re: OleDbDataAdapter appears to use incorrect path to DB
    ... "Scott M." wrote in ... The reason i do this is so I exit the function and I ... >> return Nothing because this will signify that the function failed. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Going round a Traffic Island
    ... If I am going round a very large traffic island, ... is there any reason for an ignorant bastard ... Yeah..you were turning right and in the left hand lane thus cutting up ... everyone wanting to leave at that exit. ...
    (uk.rec.driving)
  • Re: I-26 TN exit #s - Was NCs new interstates - status?
    ... anon wrote: ... no doubt that Bill Frist is the reason I-181 got ... While i'm pretty insistant that I-26 be signed east/west in Tennessee ... it uses US 23's exit numbers"....and keep the numbers the way they are. ...
    (misc.transport.road)

Loading