I have a program that is acting weird.
Stepping through with the debugger is skipping lines.
In the disassembler, it appears a comment is generating code....should this even be possible?
Using C++ .Net
Thanks
Steve W
tag->Id = TIFFTAG_MODEL;
00000681 mov ecx,edi
00000683 mov edx,110h
00000688 call dword ptr ds:[0C494514h]
tag->DataType = Codecs::Tag::DataTypeConstants::Ascii;
0000068e mov ecx,edi
00000690 mov edx,2
00000695 call dword ptr ds:[0C4944D8h]
0000069b mov edx,dword ptr [ebp-20h]
0000069e mov ecx,edi
000006a0 call dword ptr ds:[0C4944ECh]
// Debug::WriteLine("Pre ClearTag");
000006a6 nop
000006a7 pop ebx
000006a8 pop esi
000006a9 pop edi
000006aa mov esp,ebp
000006ac pop ebp
000006ad ret 4
Gabriele G. Ponti - 18 Nov 2003 15:21 GMT
Steve,
What you are referring to as a comment line generating code looks like some
clean-up code before returning from a function generated by the compiler.
Also, code generated in Debug mode is often different than code generate in
Release mode.
Regards,
Gabriele
Steve W TSI - 18 Nov 2003 16:11 GMT
Gabriele
I found the problem.
The .Net compiler wants CR and LF (0x0d and 0x0a) in the source cod
I had some lines with just CR's (0x0ds) probably pasted in from sample code (web or help file)
The compiler becomes incredibly confused....I couldn't comment out a line using //
I believe the compiler should handle this, or the IDE editor should show the lines as NOT breaking since the compiler doesn't see the breaks
Steve
PS: Am I "chicken little saying the sky is falling", or should Microsoft be notified
Stev
----- Gabriele G. Ponti wrote: ----
Steve
What you are referring to as a comment line generating code looks like som
clean-up code before returning from a function generated by the compiler
Also, code generated in Debug mode is often different than code generate i
Release mode
Regards
Gabriel