File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

outofmemory error

 
vivi santa
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
vivi santa
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
vivi santa
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
vivi santa
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic