- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have a strange problem. I have a big code (20k lines, hecne cant paste here) which compiles and runs well on debug mode. But as soon as I switch to release mode the console just flashes and program quits, like nothn happens. Any one has any idea why this is the case ?
I am using a stack size as follows:
stack researve size: 2000000000
stace commit size: 2000000000
Maybe this mite be the problem, am not sure though.
Any help or comments will be very helpful.
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anthony's suggestion is not as flippant as it sounds. For console mode programs I often have to set a breakpoint at the end to preserve the output window when using F5 to run it. In release mode, the optimization may be making the code move around enough that the debugger can't set the breakpoint.
We need more information to be able to help here. The most likely scenario is a bug in your program being exposed by the optimizer. No way to tell with what you've given us so far.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What happens if you run it from a console window?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page