Re: Linked Lists debugger question



Hello fellows, thanks for your replies!

"Uninitialized data: you've never set n2's fields to any value."

It makes obvious sense. Now I understand, if I hover my cursor over n1.next,
the debugger will show the contents of n2 because the pointer in n1.next
points to n2. And if n2's data has never been set, we get garbage or as
Giovanni says, the opcode of INT 3 assembly instruction.

I would like to ask you guys another question, Its been a long while I
haven't used VC++ GUI and I would like get back into VC++ by progressivelly
using its IDE to invoke small C programs that I would want to practice such
as linked lists. Then slowly migrate into C++ so I can continue where I left
off 2 years ago with Charles petzold's book.

However should I continue with the old version of VC++ or should I upgrade
to some better and more recent version of VC++ like Visual studio perhaps.
(Sorry I have been out of the C++ world as I was busy doing my MCU's stuff in
C. I want to stick to native code because I feel comfortable with it and will
start to learn stuff that I always wanted to now like templates and stl
etc....

And so what's deal with C#, (I know I have already asked about this! but) is
it still the language of choice for develloping PC based applications? and
what about communications (like usb, rs232... is VC++ or C# better.

I *think* C# is close to VBA. You select a control, drag it and drop it onto
a workspace, double click on it and you are prompted to start entering code
within a generic function based using the parameters that are passed in. I
will be honest, I did this in VBA with MS ACCESS for 5 years and I found that
there were many bugs to correct at compile time. More than in VC++ native
coding... ! Correct me if I am wrong that C# manifests the same type of
scenario! I could be wrong, but can someone tell me a little bit about the
bernefits of C# vs C++ native code.

--
Best regards
Roberto


"Alex Blekhman" wrote:

"Robby" wrote:
I never assigned a value to "value" and yet why does it show
that value is equal to 0xcccccccc ?

In addition to other answers. Here is the good summary table of
special values used by VC++ debugger, CRT and OS heap manager:

"Win32 Debug CRT Heap Internals"
http://www.nobugs.org/developer/win32/debug_crt_heap.html

HTH
Alex



.



Relevant Pages

  • Re: Linked Lists debugger question
    ... "Robby" wrote: ... special values used by VC++ debugger, ... "Win32 Debug CRT Heap Internals" ...
    (microsoft.public.vc.language)
  • debugging release version build issue in managed code
    ... I asked question about debugging native code before -- mode details it is ... program, but I do not compile it with x64, and it is for "Any CPU". ... that putting some variable in register prevents debugger to see its value. ...
    (microsoft.public.vc.language)
  • Re: Peace between Native and .NET freaks (a proposal)
    ... Then use NGEN (which precompiles to native code) and a debugger. ... Rudy Velthuis [TeamB] http://rvelthuis.bei.t-online.de "Everything that can be invented has been invented." ...
    (borland.public.delphi.non-technical)
  • Re: enums, 2005, and the debugger
    ... I would think that any disadvantage that managed code has should be ... but it looks like the runtime debugger 'inspects' ... or is there something 'wrong' with my enum somehow ... It should work for native code, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Variables out of scope in Class Library
    ... I can debug into the C++/CLI native code, ... display correctly in the debugger - enums for one thing. ...
    (microsoft.public.dotnet.languages.vc)