I\'m wondering how does the allocation and disposal of memory allocated for bitmaps work in .NET.
When I do a lot of bitmap creations in loops in a function and call
The .NET Bitmap class "encapsulates a GDI+ bitmap", that means you should call Dispose on a Bitmap
when you are finished with it,
"Always call Dispose before you release your last reference to the Image. Otherwise, the resources it is using will not be freed until the garbage collector calls the Image object's Finalize method."