• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

outofmemory error

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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~~
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Author
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic