我开发过一个类似的程序,也碰到过一模一样的问题。后来我发现是vector的问题。去掉vector之后就没有异常退出了。我怀疑是瞬间内存溢出造成的。我反编译vector类之后发现这个东西非常容易造成内存的瞬间变动,在执行某些操作的时候他会创建另一个array,并进行array...
Type: Posts; User: bitsonic; Keyword(s):
我开发过一个类似的程序,也碰到过一模一样的问题。后来我发现是vector的问题。去掉vector之后就没有异常退出了。我怀疑是瞬间内存溢出造成的。我反编译vector类之后发现这个东西非常容易造成内存的瞬间变动,在执行某些操作的时候他会创建另一个array,并进行array...
Hi,
Unfortunetely, J2ME doesn't include float point. But you can use interger to simulate it. Or you can use a third party package to perform fixed point or float point simulation, such as mathFP or...
It is strange problem.
You mean heap size increase? Does Runtime.totalMemory() always return different value?
I think maybe you need to read the technical documents of those phones.
Good luck
You need to add two extra MIME type in your web server in order to download midlets. Search Java Document Section in forum. There is an article discuss this problem. By the way, you can try to setup...
Yes. the first one will be collected.
Thanks, it works.
Thank you very much
Actually, I didn't found Thread.destroy() method in midp 1.0
So, I had to try to set thread object to null in my program in order to destroy it. But the thread still executing after I set it null....
Acutally, system may not immedially call gc() after you set objects to null. Unless you manually call gc(). To my knowledge, only when there is not enough memory would the system call gc() to collect...
I am not sure about your problem. But maybe you can try to use gc(). In my program, memory useage continue to increase. But after I use gc() a lot of memroy been released. Even I don't use gc()...
did you set those image objects that never used again to null?
That's exactly what I want to know. Due to my past tests, I cann't set font smaller than that. But I did see someone achieve that. I think, maybe they use different method such as using images.
Just to amend the question I posted above:
Through these days observation, I find that the data in RMS doesn't lost at all. Just when remaining space lower than a certain level ( as I guess above,...
J2ME is slightly different from J2SE. First of all, you shall use J2ME SDK(such as Sun Wireless Tool Kit) rather than J2SE to build your program if you want the program work on your mobile phone....
boehk
Use code *#0000#
I have a nokia 3410. Many times I found this problem when I use midlets: the data stored in RMS memory lost. When I launch the programs again I found the data I saved dissappear. This happens not...
I think you can see it again by reset your phone to factory setting
besides, 3410 with firmware v5.06 also support wma
to my knowledge, only in firmware v5.06 is there wma api in 3410
I am a beginner to J2ME. The following is a small program I wrote just for test.
Theoretically, in my opinion, I shall see in the screen a number increase from 1 to 29999 rapidly after execute the...
I am using IIS5 and I got the same problem as you. But after viewing some former posts, I got the answer and succefully donwload midlets from my PC. I think you should see this:
...
I've downloaded a 48k app via Vodafone in the UK. using GSM dialup
just use your phone to visit the following sites:
http://midlet.org/wap
http://midletcentral.com
http://wap.spruce.jp
http://www.midletzone.com/wap/indel.wml
Yesterday, I tried to download a java program larger than 30k. It works. It seems that vodafone upgraded their gateway. Cheers. But occationally, you would get "gateway internal error". Seems that it...