&pImage->sizeY == 0 even if &pImage + 4 points to the sizeY variable in pImage
How do I find the address of the element ''sizeY'' in the struct pImage in C++?
I tried &pImage->sizeY and it compiled right, but memory violations and the debugger says it points to 0x00000000
And what address does pImage point to? If you have memory violations with that code I assume you haven''t allocated memory for pImage or pImage is pointing to something it shouldn''t be pointing to.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement