[comp.windows.x] large data xfers between windows

garton@cunixa.cc.columbia.edu (Bradford Garton) (04/10/89)

I'm posting this for a colleague -- please reply to doug@woof.columbia.edu:


-----------------------------------------------------------------------------

I am attempting to transfer large quantities of data between two (identical)
applications using the selection mechanism and XGetWindowProperty.  The 
quantities range from a few bytes to up to Meg.  I am looping with
XGetWindowProperty() until bytes_remaining = 0, storing each chunk of data
returned one after another in a buffer allocated to the total size expected.

This technique works for medium and small size transfers, i.e., up to about
100kb -- which means the basic mechanism works -- but for larger transfers, the
application that owns the data bombs with the message 

			XIO: connection reset by peer

Just to fill in a bit, the application is a digital sound editing and processing
program, and the transfers are buffers of samples of various durations.  The 
samples are either short integers or floating points, but are always stored as
arrays and buffers of chars, and the individual application knows which is which
-- and so does the selection mechanism.

This all is happening using X11R2 running on a Sun 3/280 using SunOS 3.2.  Am I
expecting too much?  Have I given enough information?  Is it a X11R2 bug?  Any
information would be greatly appreciated, including possible alternate ways to
transfer large quantities of data between applications.  Thank you in advance!

Douglas Scott
Columbia Electronic Music Center
Computer Music Studio
...!columbia.edu!woof!doug