Is it possible for you to create a crashdump? This will make it easier for me to investigate the problem. The call to DestroyPixelCache makes it look like the image could not be read properly. I will add some more checks to make sure the image has been read properly. This could also explain the 'Object reference not set to an instance of an object' error.
↧