This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Invalid mspace

Hello,

I had this appear when I tried to compile my code in C.
WARNING C196: MSPACE PROBABLY INVALID

I do know that this occurs when we try to convert a constant to a pointer constant and hence yielding an invalid memory space. An example char *p = 0x91234.

However, I was trying to store a pointer memptr into memory space 0x463 and assigning the value of 0x464 into the memptr. The code is as follows.

 void *memptr = (void *) 0x463;
 memptr = 0x464;

Please please help. Thank you.

0