I have a .net application that monitors the clipboard every 100ms for an image that is taken from a camera (from a different application) and displays it in a picture box.
However, occasionally the program that writes the image to the clipboard gets an error saying
"Can't Open Clipboard".
This only happens when the .net application is monitoring using the following:
Clipboard.GetDataObject().GetDataPresent(DataFormats.Bitmap)
If I stop the .net application from reading the clipboard I don't get any errors!
I am wondering if anyone has any ideas if there is a better way of going about this.