Read-only archive of the All About Symbian forum (2001–2013) · About this archive

why problem when I put an image on view

0 replies · 1,522 views · Started 24 January 2005

Hi

I am just simply adding a bitmap on my view's container. Every time the program gets closed on exiting application.
I had done
_LIT(KMbmPath, "<any path>"😉;
iBitmap = new (ELeave) CFbsBitmap();
User::LeaveIfError(iBitmap->Load(KMbmPath, 1));

In func:draw I have used BitBlt as

gc.BitBlt( TPoint(10, 10), iBitmap);
The bitmap is displayed on the View.

Object iBitmap I have deleted in The distructor of Container class.
Program gets closed when the debugger leaves the Container destructor. It never reached to view's Destructor.

Is there any problem in the symbial DLLs. Why even the Emulator applications get closed when I use them.

I have also made a grid In another application , there is also the same problem.

Suggest me about this.