Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Screen flicker

From Wiki
Jump to: navigation, search
Article Metadata
Created: giridharn (25 May 2007)
Last edited: hamishwillee (30 May 2013)
Screen flicker is generally caused by CCoeControl subclasses clearing their rectangle before drawing to it in their Draw method. It's often made worse by excessive use of CCoeControl::DrawNow. Finding the code that is actually causing a particular flicker can often be very difficult. Here's an approach that I've found very useful in the past:

1. Launch the WINS debugger.

2. Resize the MSDev window so that both it and the Symbian OS emulator window are both fully visible.

3. Launch an application with which the flicker can be reproduced.

4. Type ctrl-alt-shift-f to enable Window Server auto-flushing. [This will allow you to see the effect of each draw command]

5. Put a break point in the draw method that is suspected to be causing the problem (or if you're really in the dark then in CCoeControl::HandleRedrawEvent).

6. Type ctrl-alt-shift-r - this will cause a full screen redraw and the debugger should stop at your break point.

7. Step through the draw code, observing the effect of each draw command on the emulator window.

For more Tips Refer : Debugging Draw Function

This page was last modified on 30 May 2013, at 04:35.
37 page views in the last 30 days.