Home All Groups Group Topic Archive Search About

Drag of MemoryStream stops at the application form boundary.

Author
14 Mar 2006 10:19 PM
chuck rudolph
I need to interface to an application via drag/drop that does not support
FileDrop, so I have written the code to turn the FileDrop array into a CIDA
and then stuffed the CIDA into a memory stream. So far so good.

The issue I encounter is that when C# does the .DoDragDrop the memory stream
does not make it across the program boundary. 

In my test program, the destinationControl.DragEnter event gets the memory
stream just fine. If I fire up a second copy of my test program and do the
drag from instance one to instance two, then in DragEnter
dataObject.GetDataPresent(“Shell IDList Array”) says true, but when I try to
access the memory stream with GetData(“Shell IDList Array”) I get the
following exception: This remoting proxy has no channel sink which means
either the server has no registered server channels that are listening, or
this application has no suitable client channel to talk to the server.

Now, if instead of drag drop – program instance one puts the memory stream
on the clipboard and program instance two gets the data from the clipboard is
works just the way it’s supposed to.

Is this a limit in .Net’s DataObject class or am I doing something stupid
with D&D?

Thanks for the ideas…Chuck

AddThis Social Bookmark Button