开发者

Outlook addin crashing windows explorer

i am building an outlo开发者_Python百科ok addin that utilizes the windows clipboard for temporary storage. When i make a call to Clipboard.Clear() at the end of the process, Windows Explorer crashes and needs to restart.

Does anyone know why this may be?

It ONLY happens on a 64bit OS, not 32bit..


First, don't ever do this. The windows clipboard is not there for your benefit, it's there for the user. The user owns it, not you. The user doesn't want his data overwritten by your stuff. You cannot save it off somewhere and put it back later, without affecting other apps or altering the data.

“Programs should not transfer data into our out of the clipboard without an explicit instruction from the user.”
— Charles Petzold, Programming Windows 3.1, Microsoft Press, 1992

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜