Richard Heck wrote: > You will recall that there was another place in the code that we used > cloning as a way of avoiding creating a whole new Buffer object, etc.
I think you mean exactly the code in putClipboard() that I did now reuse? The only other place where buffers are cloned is for threaded export, and this is not for performance reasons, but to allow modifying the original during export. > You will also recall that this led to some bugs, which I think you > helped (?) fix, but I think it works all right now. So that might be > another idea. If there are still bugs then they occur for copying to the external clipboard. Georg