I have a Class which has intPtr to bitmap data.
I am greating a Bitmap instance using
later i flip the bitmap with RotateFlip(Rota teFlipType.Rota teNoneFlipY);
Now, everything seems to work fine for some time.
When i ask class for Bitmap it always creates new one which is later disposed.
I came across a situation when I attempted to read or write protected memory on RotateFlip(Rota teFlipType.Rota teNoneFlipY);.
I wanted to know what is going on, so i started to dig with windbg.
But I dont know, how to find which address was used for the new bitmap. And how to find what is holding the peace of memory.
Interesting is, that the bitmap is created for first time, but when i ask again, i get an error. This is happening rarely.
I am greating a Bitmap instance using
Code:
new Bitmap(my_width, imageHeader.biHeight, stride, pixelFormat, pixelDataHandle);
Now, everything seems to work fine for some time.
When i ask class for Bitmap it always creates new one which is later disposed.
I came across a situation when I attempted to read or write protected memory on RotateFlip(Rota teFlipType.Rota teNoneFlipY);.
I wanted to know what is going on, so i started to dig with windbg.
But I dont know, how to find which address was used for the new bitmap. And how to find what is holding the peace of memory.
Interesting is, that the bitmap is created for first time, but when i ask again, i get an error. This is happening rarely.
Comment