Deallocating memory of a Bitmap created with a pointer to image bits
- From: anpasq@xxxxxxxxx
- Date: Fri, 15 Jun 2007 10:19:49 -0700
As described in the article KB814675
http://support.microsoft.com/?scid=kb%3Ben-us%3B814675&x=9&y=17
"When a Bitmap object is created with a pointer to image bits, the new
object may or may not use the memory at that address as backing for
the image. Therefore, the application must make sure that the memory
can be used during the life of the Bitmap object"
That's ok but ..
As I know there is no way to know when the Bitmap object will be
disposed.
so when should the supplied memory deallocated ?
Any Idea ?
.
- Follow-Ups:
- Re: Deallocating memory of a Bitmap created with a pointer to image bits
- From: Bob Powell [MVP]
- Re: Deallocating memory of a Bitmap created with a pointer to image bits
- From: Michael C
- Re: Deallocating memory of a Bitmap created with a pointer to image bits
- Prev by Date: Re: FillRectangle & SolidBrush Color Problem
- Next by Date: RE: User Control with transparent background flicker problem.
- Previous by thread: Camera flash effect
- Next by thread: Re: Deallocating memory of a Bitmap created with a pointer to image bits
- Index(es):
Relevant Pages
|