Namespaces
Variants
Actions

Screen flicker

Jump to: navigation, search
Article Metadata

Article
Created: giridharn (25 May 2007)
Last edited: hamishwillee (08 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 8 May 2013, at 02:59.
154 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved