Re: Problem only in release version




Carlos J. Quintero [VB MVP] skrev:

> > I'm working with a project in embedded Visual Studio 4
> > and I have a general problem which I hope that somebody can help me with.
> > My problem is the following:
> > My project works fine in debug version but behaves strangely and
> > sometimes crashes when I run it in release version. I suspect that it
> > is some sort of memory problem but it is not that easy to find out what
> > the problem exactly is (the project is rather big with maybe 30000
> > lines of code).
> > It should be the same code that runs in the both versions, right? Or is
> > there some part of the code in a project that might differ in debug and
> > release version?
>
> The Release configuration may perform some optimizations that can cause a
> different behaviour. Since the settings of each configuration (Debug /
> Release) are configurable, I would suggest to create a 3rd configuration
> copying it from Release and start changing settings towards the Debug
> configuration. At some point the app will stop crashing and the last changed
> setting can tell more about the problem.
>
>
> --
>
> Best regards,
>
> Carlos J. Quintero
>

Hi Carlos
Thanks for your reply. I will try your suggestion and hopefully that
will give me some ideas of what might be wrong.

/Babak

.



Relevant Pages

  • Re: Test Debug / Release Mode
    ... Carlos J. Quintero ... design and document much faster. ... > debug, for testing purposes. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Debug or Release mode ?
    ... You can use the DEBUG conditional compilation constant: ... Carlos J. Quintero ... design and document much faster. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Right Click context menu sometimes disables "Go To Definition" using VSl.NET 2005
    ... hover over the _DEBUG, there is no value shown and the AssertValid ... Also the the contained code for AssertValid() ... doesn't happen on a simple change of configuration. ... code in the code editor. ...
    (microsoft.public.vc.language)
  • Re: C++ debug/release builds and project references
    ... Is your class library in configuration "Release"? ... How do you add reference in the Winform project? ... suspect if you add the ManagedClassLib.dll in the debug folder. ... Creating command line "cl.exe ...
    (microsoft.public.dotnet.languages.vc)
  • Re: MFC Application has encountered a problem and needs to close. HELP
    ... the above error message offering me an option to send a message to Microsoft. ... Whenever I run the program in debug configuration it runs OK. ... This has absolutely nothing to do with "MFC exception handling", ...
    (microsoft.public.vc.mfc)