开发者

Outlook addin crashing windows explorer

开发者 https://www.devze.com 2022-12-31 18:01 出处:网络
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 a

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

精彩评论

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

关注公众号