Deallocating memory of a Bitmap created with a pointer to image bits

Tech-Archive recommends: Speed Up your PC by fixing your registry



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 ?

.



Relevant Pages

  • Re: OutOfMemory problems in WinCE 5.0
    ... to a maximum of 32MB of memory. ... images) that are inclued in the .exe file. ... GCHeap allocation and that will come out of the 32MB slot (so yes, ... assembly and the Bitmap object. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Simple sample grabber Q
    ... buffer to another chunk of memory. ... When you create a Bitmap object using the IntPtr overload, ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Deallocating memory of a Bitmap created with a pointer to image bits
    ... "When a Bitmap object is created with a pointer to image bits, ... the application must make sure that the memory ... There is if you call Dispose yourself. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: OutOfMemory problems in WinCE 5.0
    ... A process can use and access more RAM if it's in shared memory. ... GCHeap is in the 32MB space, but your assemblies themselves are not. ... GCHeap allocation and that will come out of the 32MB slot (so yes, ... assembly and the Bitmap object. ...
    (microsoft.public.dotnet.framework.compactframework)