Hi,
I have a midlet that uses two seperate GameCanvas classes. Both GameCanvas classes are declared in the Midlet file and instantiated within an initialization method in the same Midlet class. Both GameCanvas implement runnable and have continous loop run methods.
These run methods are both started from the Midlets CommandAction method, however, and here is the problem....the first GameCanvas's thread runs fine, however the thread of the second GameCanvas blocks the event thread!! The only way i can get this canvas working is to omit the loop from the run method and use callSerially() at the end of the run method to loop it!!
Any ideas? im stumped with this one. I am using Netbeans 6.8 btw
I have a midlet that uses two seperate GameCanvas classes. Both GameCanvas classes are declared in the Midlet file and instantiated within an initialization method in the same Midlet class. Both GameCanvas implement runnable and have continous loop run methods.
These run methods are both started from the Midlets CommandAction method, however, and here is the problem....the first GameCanvas's thread runs fine, however the thread of the second GameCanvas blocks the event thread!! The only way i can get this canvas working is to omit the loop from the run method and use callSerially() at the end of the run method to loop it!!
Any ideas? im stumped with this one. I am using Netbeans 6.8 btw