2011년 5월 16일 월요일

0xCDCDCDCD

0xCDCDCDCD is a debugging value that comes from the bowels of the C runtime library. When you allocate a block of memory in a debug build, it's initialized to this spurious value in the hope of catching bugs. 0xCDCDCDCD is non-NULL and is never a valid memory pointer.

.
.
.

 If you want your pointer to start out NULL, all you have to do is initialize it to NULL in your constructor.


http://www.microsoft.com/msj/1198/c/c1198.aspx

댓글 없음:

댓글 쓰기