Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet OutOfMemoryError  RSS feed

 
Ralph Ma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I got an error about OutOfMemoryError when the applet tried to read a 10m file. Does anybody know how to enlarge the max memory of applet in client side?

Thanks and regards,
Ralph
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do the reads yourself:

[ April 18, 2008: Message edited by: Nicholas Jordan ]
 
Ralph Ma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nicholas Jordan:
Do the reads yourself:


[ April 18, 2008: Message edited by: Nicholas Jordan ]



Nicholas,

Thank you for your update.
Acctually, we need read several files and their metadata from an xml file. Then upload the files and metadata to the server. The file and metadata should be kept in a format structure. So, we choose XML as container. This error was occurred during constructure XML. Do you have any idea about this error?

Regards,
Ralph
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your friend Google seems to know various ways of how to increase the applet memory allocation.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!