Regarding Illegal Monitoring State Exceptionn

Forum for J2ME mobile games related topics including programming doubts, books and other resources for J2ME game development

Regarding Illegal Monitoring State Exceptionn

Postby uvrpavan » Fri May 18, 2007 5:01 am

hi to all,

i am developing a game in which i need to displayingame menu if i get an interrupt (any one calling or any thing else like that) then i need to move the thread to waiting state. and again to notifying the thread after the resuming game. In this both situations i am getting the same exception that is Illegal monitoring state exception.................
so wat should i need to do to avoid this?
Posts: 19
Joined: Sun Feb 11, 2007 8:52 am

Postby DevelopmentTeam » Fri May 18, 2007 6:10 am

I think you need to check the state of the thread before doing resume and pause. check if the thread is already paused... In some cases the notification comes twice...
User avatar
Site Admin
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Return to J2ME Games

Who is online

Users browsing this forum: No registered users and 2 guests