Re: Code Alignment Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ken Allen (kendrhyd_at_sympatico.ca)
Date: 02/04/05


Date: Fri, 04 Feb 2005 16:12:52 -0500

cristalink wrote:
> The environment does not really matter. The code generated by the compiler
> is substantially different in debug and release modes. Most likely you have
> a bug in your code, such as an uninitialized variable etc. There's a chance
> you encountered a bug in the compiler or a timing problem.
>
> Review your code. Run Prefast from the latest DDK on your sources. Try
> Driver Verifier. Usually, you need to understand the assembly code to track
> down such a bug. If you cannot read assembly code, you better hire an
> expert.
>

Perhaps I was not clear -- the ability to make the problem disappear and
reappear by the addition and removal of debug code exists in the debug
build only. IN one debug build the problem will exist; if I add some
additional statements, the problem does not manifest itself!

-Ken



Relevant Pages

  • Re: weird Windows 2000/XP bug
    ... Subject: weird Windows 2000/XP bug ... The problem is in the cmd.exe, it has the debug symbols ... I think compiler doesnot make much difference. ... Anything that support windows would be producing the same ...
    (Vuln-Dev)
  • Re: debugging in release mode
    ... I have no doubt that it's a problem of mine and not of the compiler. ... I don't really need optimization ... for the sake of memory space or execution speed. ... shows the differences between the default debug mode and the default release ...
    (microsoft.public.vc.mfc)
  • Re: Whats more important optimisations or debugging?
    ... aiming to make high level debugging as accurate and complete as ... oriented debug chain is appropriate. ... But in either case, barring chip and compiler bugs, the bugs ...
    (comp.arch.embedded)
  • Re: Output dll bigger with VS 2005
    ... This is the first part of the map file of a debug dll compiled with VS2005 ... For a little more information on the .map files I recommend this article ... Microsoft Windows CE Compiler Team ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: VS crash after debug
    ... Exception Information ... I think this error message is much more helpful. ... further check and did find some "Visual Basic internal compiler error" ... The problem is only after a debug session. ...
    (microsoft.public.dotnet.framework.aspnet)