aspose file tools*
The moose likes Java Micro Edition and the fly likes outofmemory error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "outofmemory error" Watch "outofmemory error" New topic
Author

outofmemory error

vivi santa
Greenhorn

Joined: Feb 02, 2001
Posts: 26
I've got an uncaught exception of OutOfMemoryError when I testing my program, can anyone tell me how to solve or in where can I ajust it?
thanks
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
if you are using windows 98,then u have do the following changes..
1.right click at the top left corner of your dos prompt.select properties select of the option pane where you can find stuff like Buffer memmory,emu mem....etc, just change all the values to maximum that is 4096 for buffer..then restartur system..test ur application....Oh....it will sure work mate...
Balaji


Spritle Software Blogs
vivi santa
Greenhorn

Joined: Feb 02, 2001
Posts: 26
I am using win2000professional and I follow ur instructions but I can't see any buffer memory from the option pane, I only got buffer size that ranged from 1 to 999(not 4096?) and no. of buffer also ranged from 1 to 999. I tried adjust them to max. but I still have the OutOfMemoryError. I am stuck in here for a while, could u help me out again?
Thanks for all reply~~
glkishore
Greenhorn

Joined: Jul 09, 2001
Posts: 9
hai,
which platfrom u r using? anyway, increase the Virtual memory from the settings. that should solve your problem.
------------------
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Can u tell me which application..sofware..u r trying to test...also follow glkishore suggestions to increase ur VM..
Originally posted by vivi santa:
I've got an uncaught exception of OutOfMemoryError when I testing my program, can anyone tell me how to solve or in where can I ajust it?
thanks

chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
what is the code that you are trying out? I think you probably are allocating objects with an unchecked loop. Send the relevant bit of code that probably reads something like:
while(readString != "whatever") {
readString()
}
(ofcourse your code will have more detail. Also in win2k you shouldnt have to change the buffer size.)

chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
vivi santa
Greenhorn

Joined: Feb 02, 2001
Posts: 26
Could u tell me how to increase the virtual memory?
I am writing palm application using j2me_cldc on win2000 P
thanks for all the help
Richard Taylor
Author
Ranch Hand

Joined: Jun 19, 2001
Posts: 45
Originally posted by vivi santa:
Could u tell me how to increase the virtual memory?
I am writing palm application using j2me_cldc on win2000 P
thanks for all the help

Is this out of memory an alert from the Palm emulator, or just a general windows problem? We need to know a little more...


Richard Taylor <br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861003897/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Mobile Programming</a>
vivi santa
Greenhorn

Joined: Feb 02, 2001
Posts: 26
I think it's a window problem.
here 's what I got in the docs prompt.
C:\J2ME\j2me_cldc\bin>kvm -classpath .;%j2meclasspath% newform
Uncaught exception java/lang/OutOfMemoryError

I've tried to make the newform to a prc file to see if it works in the Emulator, but when I dragged it and run it, the Emulator hanged.

Please help~~~
Richard Taylor
Author
Ranch Hand

Joined: Jun 19, 2001
Posts: 45
Send me the source, any batch file you're running to compile/run, and a description of your dev environment (which version of MIDP/CLDC you're using). I'll see if it works on my Win98 PC...
rct@poqit.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: outofmemory error