Sign in to follow this  

"Inconsistent classes map" exception

This topic is 4842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've encountered an "inconsistent classes map" error whenever i called System.gc().does anyone know what does this error mean?I'm using WTK and Sun ONE Mobile studio and the preverify compiler to generate my classes.

Share this post


Link to post
Share on other sites
Quote:
Original post by Zahlman
Never seen that. Sounds like a good reason to rebuild, and check the library jars you're using.


Library jars?You mean any external libraries that i am using?I'm using none for this particular midlet.Seems like this runtime exception also occurs when i activate the garbage collection manually when doing memory profiling.

Share this post


Link to post
Share on other sites
This occurs on the emulator.I'm using the default color phone emulator(that horrible yellowish brown color emulator) that comes with WTK 1.0.4.I'm developing for MIDP 1.0.When i transfer the jar file over to my nokia 6100.It produces an "Unable to open application" error when it came to that line of code System.gc().I think it could be the WTK 1.0.4 building that produces this error.Weird thing is that when i remove all my calls to draw images from png and use fillrect instead.The error does not occur.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Inconsistant classes map error is a result of calling gc and the KVM memory monitor forgetting what it is doing because it still has references to gc'ed classes, as yet i have not encountered the error on the phone and only in the emulator and only when profiling memory.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
Inconsistant classes map error is a result of calling gc and the KVM memory monitor forgetting what it is doing because it still has references to gc'ed classes, as yet i have not encountered the error on the phone and only in the emulator and only when profiling memory.


Thanks,i've resolved my problem by not calling System.gc() at all.I've only experience that problem on an emulator too and when i port the jar file over to my Nokia.It produces an "Application Error".

Share this post


Link to post
Share on other sites

This topic is 4842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this