Date: Thu, 30 Nov 2000 16:40:55 +0300
From: "Danila A. Sinopalnikov" <###@###.###>
To: David Mendenhall <###@###.###>
Cc: ###@###.###, ###@###.###
Subject: Re: comments on image transfer diffs
Mime-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.1.12i
[...]
2.On Solaris: for each image transferred to another application we
create a pixmap which is never freed causing resource leak on the
server. The possible fix would be to implement an
XtSelectionDoneProc and pass it to XtOwnSelection() for clipboard
transfer and call this procedure from awt_XmDragDropFinishProc for
dnd transfer. The difficulty is that XtSelectionDoneProc is not
passed a pointer to the memory that was returned by
XtConvertSelectionProc, so we will have to cache ids of create
pixmap by ourselves. Yet it is possible that a new image transfer
via the system clipboard is started before the previous one was
completed with a call to our XtSelectionDoneProc. In this case it is
possible that the new transfer finishes before the old one. Thus it
is unclear how to determine which pixmap should be freed based on
the info passed to XtSelectionDoneProc - widget (it is always the
same for clipboard transfer), selection atom, target atom. Needs
further investigation.
[...]
Danila.