Kleopatra locking the Clipboard
Andrew Birch
andrew.birch at tradar.com
Fri Nov 4 11:06:13 UTC 2011
Hi Marc,
Thanks for your response.
It's worth saying that the code I am using to access the Clipboard is written in C#.
Thanks in anticipation,
Andy
Andrew Birch
Junior Developer
_______________________________
Main: +44 20 7634 8500
Direct: +44 20 7634 8538
Email: andrew.birch at tradar.com
Web: http://www.tradar.com/
This email is subject to the following disclaimer: http://www.tradar.com/company/emaildisclaimer.htm.
London Office - Old Change House. 128 Queen Victoria Street, London. EC4V 4BJ
Tradar Limited is a limited company registered in England and Wales. Registered number: 3431380.
Registered office: 20-21 Jockey's Fields, London. WC1R 4BW
-----Original Message-----
From: Marc Mutz [mailto:marc.mutz at kdab.com]
Sent: 04 November 2011 10:18
To: kde-windows at kde.org
Cc: Andrew Birch; Mark Hazeldine
Subject: Re: Kleopatra locking the Clipboard
HI Andrew,
On Wednesday November 2 2011, Andrew Birch wrote:
> Application: Kleopatra (Certificate Manager and Unified Crypto GUI)
> Version: 2.1.0
> KDE Version: 4.1.4
>
> I am a developer who is working on a piece of software that accesses
> the Clipboard. I am experiencing a problem whereby when trying to
> access the Clipboard an ExternalException is thrown with the following error message:
> 'The requested clipboard operation did not succeed'. As a result, I
> did some diagnostic work to try to work out which application was
> locking the Clipboard. There seem to be a number of different
> applications that sometimes lock it (presumably whilst they have access to it).
>
> However, the worst offender seems to be Kleopatra.exe. By 'worst' I
> mean it seems to persistently lock the Clipboard and thus blocks our
> application from accessing it. We are not actively using Kleopatra
> when this problem occurs; it is just running in the background. Also,
> interestingly this problem does not always seem to happen; sometimes
> Kleopatra doesn't seem to access/lock the Clipboard.
>
> I was wondering if you might know why this is and if there is anything
> we can do to prevent Kleopatra.exe from persistently accessing the Clipboard?
What Kleopatra does, in technical terms, is to connect to QClipboard's
changed() signal and queries the data in there to see whether it should enable/disable it's clipboard-related actions.
So when you're talking about locking the clipboard, I'm sure that's something that QClipboard does internally. Not knowing the Windows APIs for this, I can't be of much help here.
Maybe some of the Windows specialists know more?
Thanks,
Marc
--
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-Independent Software Solutions
More information about the Kde-windows
mailing list