RE: [Dev-C++] Constructor and Destructor
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2003-07-10 17:46:07
|
> When you don't assign a value to b it will be uninitialized, and set to > any value that might be in memory. When you then call a non-virtual method > of the object, the method will thus get a random 'this' pointer. But shouldn't a protected-mode program crash when you try to access a pointer that doesn't point to legally allocated memory? -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |