The debugger would report that myArray has a memory address of 0x00000000. It goes through the constructor fine and then when it goes into the init() function myArray would become a null pointer. I used the Visual Studio debugger to poke around. I was very puzzled by this since it was just a standard boolean array holding true or false. Here is a snippet of the code:Įvery time I ran it, it would throw a memory access violation. I spent quite some time tracking down an issue I was having with my C++ project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |