Crashes in Debug (random) but not release



I have an issue when running in debug mode, the program will "crash" with
either the "data misalignment" or "access violation" errors. When I run it
in release, everthing seems fine. The other odd thing is that the place it
crashes in debug mode seems random. Sometimes if I execute a particular
line with
"F10", it will throw the exception. The next time, if I hit "F5" past the
same line, or "F11" and step through it won't crash at all, or it will crash
in a different place. If I change a piece of source code, recompile, and
run again, it will crash in a
different spot. It seems like the executable file or maybe a library that I
am linking in is corrupt or misaligned when generating a debug build. Is
this possible? Has anyone seen anything similar? Thanks.

Timothy Dean
MobileDataforce



.



Relevant Pages

  • Re: Application is crashing in release mode (Using mfc in a static library).
    ... But my application is working fine in the debug mode. ... crash at all. ... But when I see the call stack the location which it ... crashes is this ...
    (microsoft.public.vc.mfc)
  • Re: Crash without dump file
    ... Compile it in debug mode and deploy the .pdb files. ... There were neither popup windows signaling it nor dump file created. ... Exception ex = e.ExceptionObject as Exception; ... PC use unmanaged code to handle serial COM ports and never crash! ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Very strange debugging results, how can this be explained???
    ... proceed to execute the code even if the value is> 555. ... Is the debugger telling the ... Normally I could put in a breakpoint in debug mode, ... The debugger reports that ROW = 1119664, ...
    (microsoft.public.vc.mfc)
  • Re: Windows Explorer Error
    ... Enquire, plan and execute. ... It you have Stop errors set tio display on screen this is what you see - a Blue Screen saying the system is dead. ... If not type verifier in Start Run and wait for a new crash and analysis the new one. ...
    (microsoft.public.windowsxp.general)
  • Re: More on Windows Vista - worst OS yet?
    ... applications that never crash, and I know nothing about CS or modern ... Have you ever written a large OS, like linux or windows? ... and the stack on stack pages, all enforced by the hardware memory ... were execute-only, and it was impossible to execute data. ...
    (sci.electronics.design)