views:

67

answers:

2

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.

+1  A: 

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.

aJ
tank you can you give you email so I can give you my source code. I don't want public my source code in the website.
carl
Sorry. In that case you probably have to post minimal code in the question itself.
aJ
+1  A: 

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

Anders K.