Hi,

Is there a reason why ClipBoard.HasFormat() is so slow ?

Putting a call to ClipBoard.HasFormat() in an OnUpdate handler of an action
coupled to a toolbutton, seriously slows down an application, to the point
of being unusable. If I comment out the call, the application responds normally.

This is on Linux (GTK1). I looked at the clipboard calls, but on the first 
look of things I see no reason why it should be so slow, except maybe the
ClipboardGetFormats() call.

The strange thing is that if something suitable is on the clipboard, 
the application responds normally.

Michael.
_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to