View Full Version : "systemerror" when loading bitmaps


mugi
14-01-2005, 03:42 PM
hi all!

again a question from a newie:

i extended an existing application with a simple piece of code to display a bitmap on the screen. it all works fine on the epoc emulator. i can create the sis file for the mobile device and install it - all without errors. but when i launch the application on my SX1, i get a "systemerror" ... no further information.

by commenting out pieces of my new code, i found out that the error occurs when i'm loading the bitmap:





...

#include "bitmapmethods.h"
_LIT(KMBMFileName,"c:\\system\\apps\\myapp\\myappbitmaps.mbm");

...

iBitmap = NBitmapMethods::CreateBitmapL(KMBMFileName, EMbmMyappbitmapsMypicture);

...





the multibitmap file is at the correct location on the phone.

any ideas what's going wrong? i think it has sth to do with the location of the mbm file, the location of the application or memory usage ...


thx in advance
mugi