Article View: news.software.readers
Article #180953The _Only_ difference was the presence of the debugger ! ? ?
From: Jeff_Яelf
Date: Fri, 24 Feb 2006 18:20
Date: Fri, 24 Feb 2006 18:20
24 lines
1848 bytes
1848 bytes
Hi Randy_Poe, Speaking of my code randomly crashing when it's outside the debugger, You told me: Check your optimization flags. Sometimes this happens when optimization is turned on ...and you're doing something like writing an array out of bounds. Optimization is turned off when compiling for debug, so the code and the memory locations are actually not the same. The executable and the data sets were _Exactly_ the same, the _Only_ difference was the presence of the debugger ! ? ? MicroSoft C, VC_8, Visual_Studio_2005, allows any settings, any optimizations, in the So_Called debug mode... it's just a label. Debug_Mode could actually be Release_Mode, and vice versa. Anywho... I owe you big time... it's no longer crashing. You prompted me to turn off all optimizations I could find and turn on any debugging options I saw... that did it.
Technical Details
Message-ID:
<Jeff_Relf_2006_Feb_24_CbmK@Cotse.NET>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-sci.physics.(1199963).mbox.7z!not-for-mailReferences:
<Jeff_Relf_2006_Feb_21_hZyT@Cotse.NET> <tp-dnbxP-b9JN2HeRVnyvQ@pipex.net> <Jeff_Relf_2006_Feb_23_CKsO@Cotse.NET> <r5-dnSJ9B-PWqGLeRVny0Q@pipex.net> <Jeff_Relf_2006_Feb_24_y1je@Cotse.NET> <1140801501.781512.35050@i40g2000cwc.googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <Jeff_Relf_2006_Feb_24_CbmK@Cotse.NET> Subject: The _Only_ difference was the presence of the debugger ! ? ? Date: Fri, 24 Feb 2006 18:20:03 +0000 From: Jeff_Яelf <Me@Privacy.NET> References: <Jeff_Relf_2006_Feb_21_hZyT@Cotse.NET> <tp-dnbxP-b9JN2HeRVnyvQ@pipex.net> <Jeff_Relf_2006_Feb_23_CKsO@Cotse.NET> <r5-dnSJ9B-PWqGLeRVny0Q@pipex.net> <Jeff_Relf_2006_Feb_24_y1je@Cotse.NET> <1140801501.781512.35050@i40g2000cwc.googlegroups.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-sci.physics.(1199963).mbox.7z!not-for-mail Newsgroups: news.software.readers,sci.physics,comp.os.linux.advocacy Lines: 22 Content-Type: text/plain; charset=UTF-8 X-Trace: individual.net f/Obww+7jlNKAfG8fPm61wDtvGgqisMGpzPS2pA2ytSYqEv5XK