My questions is about series 40 heap size:
1. What is the maximum heap size available in J2ME application?
2. Is there a limit for number of resources I can create in run time?
3. Assuming I create only one resource for example: MIDI file, what is the maximum size this file should be? I manage to play 60K MIDI but 70K I couldnt.
Heap size on most S40 phones is around 200k (+-). That includes not only resources, but also the classes loaded and objects created. So the max size for a resource depends on the actual size of your code.
So how can you explain the MIDI file problem I had.
The class's size is 4K and the MIDI file was 70K. According to your
statment, I should have manage to play this MIDi file, but instead I got : "out of memory" error message.