Assertion error
-
I got error as follows _CrtISValidHeapPointer(pUserData) as assertion error what is that?any one help me
Can you be more specific please_**
**_
whitesky
-
Can you be more specific please_**
**_
whitesky
-
Just file reading i am reading,the whole coding is going process fine,but after InitInstance the control goes to disassembly and shows this error and sometimes unhandled exception error is also coming.
can you show your code that has error,please_**
**_
whitesky
-
I got error as follows _CrtISValidHeapPointer(pUserData) as assertion error what is that?any one help me
It means you're trying to
delete
(orfree
or some other heap allocation function) memory you shoudn't. Possible reasons; - Freeing already freed memory; - Freeing memory not allocated on the heap; - Freeing an address in the middle of a heap block (e.g.delete ((new int[2])+1);
). Steve -
I got error as follows _CrtISValidHeapPointer(pUserData) as assertion error what is that?any one help me
What line of what file is asserting? Without context, the error is rather meaningless.
"The largest fire starts but with the smallest spark." - David Crow
-
I got error as follows _CrtISValidHeapPointer(pUserData) as assertion error what is that?any one help me
_CrtISValidHeapPointer(pUserData) To find out what's wrong with this line, declare pUserData as constant pointer and see where you get compiler errors. ;)
-
I got error as follows _CrtISValidHeapPointer(pUserData) as assertion error what is that?any one help me
An assertion is something the System Uses,(and you should also use them) to make sure that an assumption is actually the case. If it is not, it will throw an exception. In this case, if you use free(p), it assumes that p is a valid heap pointer. That assumption is tested, or asserted deep in the bowels of the code, and in this case it failed, pUserData is NOT a valid heap pointer. Go back on the Call Stack to find out what is being freed, and take it from there LateNightsInNewry