2012-11-25 29 views
0
13068727 byte-codes executed 
1886 thread switches 
1682 classes in the system (including system classes) 
22937 dynamic objects allocated (2043812 bytes) 
86 garbage collections (1917296 bytes collected) 

它也給予了內存不足的錯誤,byte-code exceeded maximum limit 32byte-code錯誤在J2ME中的代碼,相關的內存,性能

這些錯誤消息。

回答

0

13068727 byte-codes executed 1886 thread switches 1682 classes in the system (including system classes) 22937 dynamic objects allocated (2043812 bytes) 86 garbage collections (1917296 bytes collected)

這些不是錯誤消息。它們僅僅是信息 - 告訴你關於你的設備/應用程序的性能。

It is also giving out of memory error ,byte-code exceeded maximum limit 32byte-code

這看起來有點奇怪。這可能是說你的程序對於設備來說太大了,但是很難說,因爲你顯然沒有準確地轉錄它。如果您想要進行正確的診斷,請將精確的錯誤消息和任何堆棧跟蹤剪切並粘貼到問題中。


我認爲「最大字節代碼長度超過(32kb)」消息意味着你有一個類或方法太大。如果你有一個稱爲「元素」的類或方法是最可能的罪魁禍首。它也可能是一個實例太大...

+0

java.lang.OutOfMemoryError:元素:最大字節代碼長度(32kB)超出 這是確切的消息 – cool