Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

Avoid "Program Database for Edit & Continue"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mihajlo Cvetanović - 28 Jul 2005 16:21 GMT
Avoid "Program Database for Edit & Continue" in VC 2003!

This option made me think I'm in Twilight Zone! The code behaves as not
intended, the breakpoints in the debugger get skipped, the only positive
thing about it is that the error is repeatable.

Consider the following code snippet (it may not produce the bug, but I
can't really post mine whole project):

f(1);
if ( q )
  f(2);

Ordinary person would think that f(1) will be called every time, but not
according to the debugger when certain option is chosen. Actually, f(1)
will *not* be called, but f(2) *will*. Go figure.
D.Rowe - 28 Jul 2005 16:53 GMT
I've actually notice this happen when you have the project set to Release and
not Debug. Also at times I've needed to do a recompile of all the code before
some parts work again too.
Pavel A. - 31 Jul 2005 23:42 GMT
> I've actually notice this happen when you have the project set to Release and
> not Debug. Also at times I've needed to do a recompile of all the code before
> some parts work again too.

Optimization in release mode is very agressive and can result in moving
parts of code around and deleting dead code under some source lines.
If you want reliable debugging, compile in debug mode.

--PA

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.