Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

J2ME Thread Question

Status
Not open for further replies.

MartinF

Technical User
Sep 19, 2000
143
0
0
FR
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top