I just created a barebones app using App Wizard, with view architecture support. I wrote some code to display a background image in teh container but the application crashes when i load it. No compilation errors. My container is derived from CCoeControl and MCoeControlObserver.
// TODO: Add your drawing code here
// example code...
//gc.SetPenStyle(CGraphicsContext::ENullPen);
//gc.SetBrushColor(KRgbGray);
//gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
//gc.DrawRect(aRect);
}
Can someone see what my problem here is? No compilation errors. Program crashes upon loading. Not even the image shows up.
Were you able to track it down where exactly it crashes? Using debugger...
Does it crash on emulator or on a real device?
Do you have your file placed in the right directory? On emulator it should be in "\Symbian\6.1\Series60\Epoc32\Wins\c\system\Apps\YourApp". On a real device you should be aware of different "disks" where your app can be installed.
My program called F2F gets its icons for its listbox from the 'z' drive, and it works fine. The only F2F.mbm file is in the 'z' directory above. I didn't have to move the mbm file to \Wins\c\system\Apps\F2F ( there is no such directory in the first place).
Why is it for the TEST application i had to move it to 'c'?
btw, the mbm file paths in the F2F application and TEST application are as follows: