out of memory error in J2ME..? [closed]
I am getting this out of memory error:
java.lang.RuntimeException: java.lang.OutOfMemoryError: <classname>: Unable to expand permanent memory
I am getting this error while i am taking a reflect instant of a class in J2ME.
You could try allocating more space to the jvm. This is an example of how to do it.
One possible cause for this could be that you have a memory leak which is far too common. There are a lot of tools that you can use to help diagnose and fix these issues. WTK is one of them, but there are others.
精彩评论