I am creating a J2ME game that plays various MIDI sounds while it executes. Each time I want to playe a MIDI file, I use the following two lines:
Sometimes, when I run the application in the S60 3rd edition FP1 emulator the emulator hangs when the application plays a midi FOR THE FIRST TIME.
Then the application execution cannot continue and I have to kill the emulator's process in the Windows Task Manager. This behaviour is not easy to reproduce. Most of the times I managed to reproduce it when the emulator was running my application for the first time after rebooting Windows.
When the application does not hang (which happens most of the times), all midi files are played without any problem.
Has anybody else encountered such a problem? Is it a bug? Is there a workaround?
Thanks in advance