You Are Here:

Community: Developer Discussion Boards

#1 Old ClassCastException when system screen goes away - 2006-08-08, 16:49

Join Date: May 2005
Posts: 63
hnipak
Offline
Regular Contributor
Hi,

I have an application that does a lot drawings - I have a renderer for main GameCanvas running its own thread doing drawImage/drawRegion/drawString etc + flushGraphics. A request for renderer to update screen comes from either keyboard or external network source (in which case I use callSerially to handle such event in sync with event stream, so "update screen" request to the renderer is sent from run() method of simple implementation of Runnable passed to callSerially()).

I can even reproduce in emulator, but I do not understand what happens - the background thread "serializes" (via callSerially) several Runnables, but the last one(s) run() method never gets invoked.... ??

Anyone can help me, please? Thanks in advance!

h.
Last edited by hnipak : 2006-08-08 at 17:41.
Reply With Quote

#2 Old Re: ClassCastException when system screen goes away - 2006-08-08, 19:55

Join Date: May 2005
Posts: 63
hnipak
Offline
Regular Contributor
I will answer myself: you are misusing callSerially().

It appears as if applicaton event queue gets corrupted when one invokes callSerially() multiple times without waiting for a Runnable currently being served (if there is any) to finish. Event stream behind does not work as a queue....

I should read javadoc better ;-)

Sorry for bothering here...
h.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct Screen Access (Please Comment!) earamsey General Symbian C++ 1 2006-07-28 19:34
Full screen splash screen jitendrachhajed General Symbian C++ 1 2005-07-11 09:01
Drawing in system area(the part draws battery&radio signal) toughworker Symbian User Interface 2 2004-12-22 02:28
UI: Full Screen Mode GENERAL_INFO Symbian User Interface 3 2004-11-22 07:27
System Help with nokia pc connectivity SDK gotka PC Suite API and PC Connectivity SDK 4 2004-07-06 10:56

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia