;) Okay, this is pretty far-fetched and esoteric, but it really did happen to me so I might as well post a bug. I wont feel hurt if you wontfix this bug and in fact, it might even be a bug in wxPython or wxWindgets.
Anyway (blush) it boils down to this. It would seem the Windows clipboard can be locked or busy with another operation. I was able to do this by copying an image in Paint Shop Pro and then "Pasting As Selection" to data into another image, but not completing the paste. I then switched back to DrPython and did a cut (for a paste) on some text.
The text disappeared and an error box popped up with:
Failed to put data on the clipboard (error -2147221040: openClipboard Failed)
I admit, this is an ultra-rare occurence, but I think the proper way to handle this event is to check the return code of the "cut" call and if it's not successfull, don't clear the text.
Log in to post a comment.