PDA

View Full Version : why error "program closed" when I use CFbsBitmap class



hemantnokia
24-01-2005, 10:18 AM
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 draw I have used BitBlt as
gc.BitBlt( TPoint(10, 10), iBitmap);

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.