[Solved] How can “this” pointer be uninitialized inside a class? [closed]


In Visual Studio C++, what are the memory allocation representations?:

  • 0xCCCCCCCC : Used by Microsoft’s C++ debugging runtime library to mark uninitialised stack memory

At the moment you do obj->, your obj is not initialized. The two lines of code in the question are not your real code, or there is something important taking place in between.

Plain stepping through using debugger will give you an answer to the question.

One of the possible causes is that you have 2+ obj local variables in your function.

4

solved How can “this” pointer be uninitialized inside a class? [closed]