I am using some unmanaged code that is returning pointers (IntPtr) to large image objects. I use the references but after I am finished with the images, I need to free that
Perhaps you could try creating a Bitmap object from hBitmap and then disposing it.
Bitmap
hBitmap
Bitmap bitmap = Bitmap.FromHBitmap(hBitmap); bitmap.Dispose();