This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet OutOfMemoryError

 
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: 42967
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic