Click to See Complete Forum and Search --> : Visual Studio .Net Bug
voidspace
April 22nd, 2004, 04:13 PM
Visual Studio .Net Bug
Trace("To output window");
does not work after breaking at a break point and making a change and continuing. What crap :( :mad:
Do any1 know if there is a fix for this ..
Andreas Masur
April 22nd, 2004, 04:42 PM
[Moved thread]
voidspace
April 23rd, 2004, 05:57 PM
Ok Let me explain..
1. Create a simple MFC application.
2. Override the PreTranslate Message in CMainFrame.
In
CMainFrame::PreTranslateMessage(..)
{
TRACE("Hello World\n");// Place a break point here
}
Run the application.
The break point would be hit.
Remove Breakpoint and Hit F5.
Notice in the output window
Hello World
Hello World
Hello World
.....
Place the breakpoint again and the breakpoint would be hit as soon as the application gets focus.
Edit the Trace to be
TRACE("No More Hello World in Output");
Press F10 to compile.
Press F5 to run.
TRACE statements no longer work. Nothing in the Output window ?
Anyone knows how to fix this or noticed this please reply. This is a Huge bug..
Mick
April 23rd, 2004, 06:06 PM
I'm going to point out the obvious here so don't get upset ;) but in vc.60 it will switch focus to the build tab, are you sure your looking at the output tab for .NET?
Second if the obvious is obvious, then what does the disassembly look like eg: look at the disasm window and post what it displays here...do you a call AfxTrace in the disasm?
TheCPUWizard
April 23rd, 2004, 06:20 PM
There are, have always been, and will probably continue to be....problems with MACROS and edit/continue.
Yet another reason to avoid their use wherever possible.
voidspace
April 23rd, 2004, 06:41 PM
Originally posted by Mick
I'm going to point out the obvious here so don't get upset ;) but in vc.60 it will switch focus to the build tab, are you sure your looking at the output tab for .NET?
Second if the obvious is obvious, then what does the disassembly look like eg: look at the disasm window and post what it displays here...do you a call AfxTrace in the disasm?
Yes I am looking at Output window 100% sure.
I have found this bug around 6 months back but was waiting/hoping for a patch from microsoft but nothing came out..so I was wondering if other also see the same problem or is it only me.
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.