delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/12/04:49:19

Date: Tue, 12 Aug 1997 11:48:45 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
cc: djgpp AT delorie DOT com
Subject: Re: Was about RHIDE and Emacs.
In-Reply-To: <m0wxpP0-000S1fC@inti.edu.ar>
Message-ID: <Pine.SUN.3.91.970812114808.1213B-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019