Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the reason of Invalid Address specified to RtlFreeHeap

the develop environment is vs2008, the language is c++, when I release the problem,at beginning it run with out problem but after several minutes it stop and show error like that : HEAP[guessModel.exe]: Invalid Address specified to RtlFreeHeap( 003E0000, 7D7C737B ). who can tell me the reason of the error. thank you very much.

like image 744
carl Avatar asked Sep 21 '25 03:09

carl


2 Answers

My guess is that you are trying to use the wild pointer. Either the pointer to the memory which got freed has been de-referenced or some invalid pointer has been passed to free function.

It is very hard to tell the reason without seeing the actual code. You can attach some debugging tools like WinDbg and get the cause for this error.

like image 138
aJ. Avatar answered Sep 22 '25 18:09

aJ.


Its because your heap has become corrupt. You probably are either freeing memory twice or using some uninitialized pointer or something similar.

like image 35
AndersK Avatar answered Sep 22 '25 19:09

AndersK