[Lazarus] Clipboard.HasFormat(CF_TEXT)

C Western l at c-m-w.me.uk
Sat May 31 11:50:00 CEST 2014


On 26/05/14 19:41, Colin Western wrote:
> In the wrong order is certainly a possibility also, though I was more
> concerned about the hang. When the actions overlap, I think anything can
> happen.
>
> On 26 May 2014 18:43:23 BST, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
>
>     On Mon, 26 May 2014 18:16:10 +0100
>     C Western <l at c-m-w.me.uk> wrote:
>
>         [...]
>         I would think that any application that uses the clipboard would be
>         vulnerable to this. For example, I think I can trigger the issue
>         with
>         two Ctrl-V's in succession with the edittest example in lazarus.
>         Start
>         it and say libre office (I used a spreadsheet with about 1000
>         lines of
>         data.) Select and copy a large block in the spreadsheet, and
>         then hold
>         down the Ctrl+v key in edittest. A few copies will appear very
>         quickly,
>         but then the application hangs for several seconds (at least).
>         Lazarus
>         itself can be made to hang in the same way.
>
>
>     Do you mean the copies could be processed in the wrong order?
>
>     Mattias
>

I have done some more investigation of this, and come up with a possible 
patch
http://bugs.freepascal.org/view.php?id=26242

Colin





More information about the Lazarus mailing list