My app crashes every time when I change the screen size in emulator. AppUi is constructed with flag EAknEnableSkin. Here is the dynamic layout code from view container:
Now, when I'm checking this in debug mode, the processing never goes inside the aType == KEikDynamicLayoutVariantSwitch-if after I've changed the screen size. Debugger gives me a value to aType as 268457924. I have no idea what this is. I think the crash results from the fact that the actual rect-setting isn't done, although I can't be completely certain of this, as I can't trace the bug.Code:void CMyContainer::HandleResourceChange(TInt aType) { // Scalable UI support if ( aType == KEikDynamicLayoutVariantSwitch ) { TRect rect; AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, rect); SetRect(rect); } CCoeControl::HandleResourceChange(aType); }
Epocwind.out says I'm getting a KERN-EXEC 3 and a couple of comments after this it also says "Client with active view removed while screen device change request outstanding", although I don't know if this is related.
Any ideas on how to fix this?




