Re: D500 memory problem on startup
Elliot Sumner <[email protected]> Tue, 29 Apr 2008 16:48:13 +0100
| Newsgroups | gmane.comp.java.sun.kvm |
|---|---|
| Message-ID | <[email protected]> |
I remember having the same issue with a game a few years back. Its basically because you are running out of heap for an individual class at runtime or the entire allocation for your MIDlet. My _hacky_ solution was to split the app into several midlets and ensure that each zone in game was in a seperate class. This way you could avoid huge classes, and if your app is split correctly, the classes for the other zones would never be touched at the apps runtime. If I remember correctly, the D500 would search all the classes referenced from the MIDlet and load/recompile each one on on boot. Debugging of the app was done blind, so it was quite long process to get working. Hope that helps. James Closs wrote: > Hello Kirwan, > > I've just found your post below whilst searching the KVM-Interest > archives and wondered if you ever found a solution - I'm having the > same problem with an app I'm developing. I'm sure this is nothing > 'normal' to do with resource loading/heap as the game is not loading > anything at all demanding and quits right away. > > best regards > >> Having previously had a working 73KB MIDlet on the Samsung D500, the new >> version displays the message below on start up and then returns to the >> downloads menu. >> >> "The application has unexpectedly quit because it ran out of memory" >> >> This started with a JAR of about 135KB, well below the 300KB maximum. >> Having removed all images and some classes I'm down to 95KB. I've also >> removed all references to RecordStores but still the same message >> appears every time. >> >> Has anyone else had this problem and found a way to resolve it? > > ==== > > James Closs, Director, bitBull Ltd > > http://www.bitbull.com > > 07771 991171 > > ==== > > =========================================================================== > > To unsubscribe, send email to [email protected] and include in the > body > of the message "signoff KVM-INTEREST". For general help, send email to > [email protected] and include in the body of the message "help". -- Elliot Daniel Sumner Mobile Developer Emote Games Ltd. telephone : +44 (0)151 224 7767 mobile : +44 (0)777 324 0527 skype : elliot.sumner email : [email protected] -- Emote Games Ltd. is a company registered in England and Wales No. 05504381. Registered office: 27 Old Haymarket, Manchester Street, Liverpool, Merseyside L1 6ER http://www.emotegames.co.uk/ =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff KVM-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".