Mail Archives: djgpp/1997/08/12/04:49:19
On Mon, 11 Aug 1997, Salvador Eduardo Tropea (SET) wrote:
> P.S. Last minute: I added support for the Loose clipboard. Is limited to the
> size of the transfer buffer but you can copy & paste with it.
You could easily overcome the size limitation by allocating your own
buffer, which can then be as large as 500K. That's what Emacs does.
If you do that, you need to be aware of 2 caveats:
1) You should deallocate the buffer after the data is moved, or
else child processes might not have enough DOS memory to run.
2) Do NOT use the DPMI services to allocate and deallocate the
buffer; use the DOS functions via `__dpmi_int'. That's because
the DPMI server built into Windows/NT will crash your program if
it tries to call `__dpmi_free_dos_memory' (seems like a bug in
NT).
- Raw text -