Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why does java_crw_demo not work?

843811Nov 23 2004 — edited Dec 5 2005
I am writing a program in C,which is in the similitude of the source in %JAVA_HOME%\demo\jvmti\heapTracker\src\heapTracker.c.

VC++ 6.0 throws a assert failure when I free the memory allocated by java_crw_demo.dll with the following code:
 if (newImage != NULL ) {				 
               free((void *)(newImage)); /* Free malloc() space with free() */
}
The error message is:
Debug Assertion Failed!
Program:c:\WINNT\system32\java.exe
File:dbgheap.c
Line:1011

Expression:_CrtIsValidHeapPointer(pUserData)
What happened?How should I solve this problem?
Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2006
Added on Nov 23 2004
4 comments
155 views