memory debugger: Inconsistent classes map

Hi,

I am using JSR-184 and sun WTK 2.2.0.
When I try to run the program with the memory monitor enabled on the emulator, I always end up with the following exception:

Exception in thread “Thread-5” java.lang.RuntimeException: Inconsistent classes map
at com.sun.kvem.memorymon.ObjectNode.free(Unknown Source)
at com.sun.kvem.memorymon.ObjectsMonitor.freeObject(Unknown Source)
at com.sun.kvem.memorymon.MemoryMonitor.freeObject(Unknown Source)
at com.sun.kvem.memorymon.MemoryListener.run(Unknown Source)

What can cause this?

Regards,
Franck

Hi there, i’m having exaclty the same error.

I developed a 21/2 D SnowBoard game and it behaves very strangely…
On the emulator it works fine, especially on SonyEricsson. But if I insiste on retrying the levels after 8 ou 9 retries it returns the error.

java.lang.RuntimeException: Inconsistent classes map
at com.sun.kvem.memorymon.ObjectNode.free(ObjectNode.java:168)
at com.sun.kvem.memorymon.ObjectsMonitor.freeObject(ObjectsMonitor.java:120)
at com.sun.kvem.memorymon.MemoryMonitor.freeObject(MemoryMonitor.java:670)
at com.sun.kvem.memorymon.MemoryListener.run(MemoryListener.java:106)

When runned on a Nokia 6630 and it works fine but I imagine if i try hard to crash it, I might be able to.
Running it on a Nokia 6680 by the end of the first level the phone returns me one of those fatal white screens, blocking the app, and it’s over. Any ideas why this happens??

I kill the threads and do plenty of garbage collecting but I can’t understant the difference in the behavior.

Thanks,
Dedas

closing all your input streams?