Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!sdd.hp.com!samsung!munnari.oz.au!murdu!ucsvc!wehi!baxter_a From: BAXTER_A@wehi.dn.mu.oz Newsgroups: comp.sys.amiga.tech Subject: Can we salvage the clipboard? Message-ID: <8886@wehi.dn.mu.oz> Date: 11 Jun 90 11:41:19 GMT Organization: Walter & Eliza Hall Institute Lines: 34 Has anyone out there actually tried to program the clipboard?? I wrote the copy stuff, chacked all my variables, and the text string before it went in and everything. All looked fine. Then I tried to find a bug free program that could show me what was in there. _Bug free_!! I must have been out of my mind!!! Notepad: This must be close to the slowest implementation of a clip board in the world. Pasting text is like swimming in treacle. It always chokes on text >5000 characters, and gives up. Curiously, in a different place each time. I suspect it is trying to read the text a buffer-full at a time, and looses track of where it was up to in the clipped document. Snap: Probably worse. Seems to use a static buffer for text of about 250 chars. Once that is full, no dice. I ended up writing my own viewer. Just a little function to spew the contents out into the current cli. The clip was in there ok, and the copy and paste functions are reasonably fast. It just looks like there is almost no support for the clipboard in the world-at-large. I would like 2 things if someone could email them, please. 1) The latest version of the C= cbio.c functions (in case the ones I am using are a little infested. 2) The latest source to snap, and I'll add dynamic memory allocation so we can snap any amount of text (which I can send in return, if desired). An suggestions for salvaging the clipboard??? Regards Alan