Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 124x: edit and continue bug
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Aug 30 2004 :  3:30:20 PM  Show Profile
When using edit and continue in VS2003.NET and the result of the compilation causes "stale code", VS opens a source code window containing the old version of the code. The name of this file is a temporary name (encXX.tmp), the whole source is colored in purple and VAX is definitely not active in this window.

How to repro:
create any .exe project, enable edit and continue, compile and run, break in a function, add a new local variable to this function, debug-step. VS will compile the changes, pop up a warning about stale code and then open the temp source window.

PS: I suppose this also applies to newer version of VAX. Havent tried it yet.

Edited by - Uniwares on Aug 30 2004 3:31:18 PM

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 30 2004 :  4:12:43 PM  Show Profile
i cannot get .NET 2002 to pop up the dialog about stale code. then again, i have never used edit and continue, so perhaps i am overlooking some step somewhere.

i will have a go with .NET 2003 tommorow at work.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Aug 30 2004 :  4:14:31 PM  Show Profile
Maybe you'll have to actually use the new variable too to get this situation?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 30 2004 :  6:06:21 PM  Show Profile
fixing the project so it would compile in debug mode helped. this time i got the dialog about edit and continue.

i put a break at the start of a function that scans a directory tree on my hard drive. for edit and continue i added a counter, incremented it inside the scan folders loop, and printed it out at the end.

i have just stepped over the code i added at run time, several times, and still no sign of any stale code. i will try this at work tomorrow on .NET 2003

why are so many of your bugs so hard to reproduce?

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 31 2004 :  07:01:54 AM  Show Profile
using .NET 2003 i still don't get any stale code using edit and continue

are you stepping through the cpp file and function that you have just edited? i assumed you were, so my tests have been:

* put break point at the start of a function
* edit this function
* step through this function

all in one function, one cpp file. since i am not getting any comments about stale code, i am wondering if you are doing something different.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000