Home All Groups Group Topic Archive Search About

Clipboard.GetData is always returning null

Author
13 Apr 2006 3:23 AM
Dave
My objects seem to be put into the clipboard ok and Clipboard.ContainsData()
is returning true but when I GetData() the object returned is null.  What am
I doing wrong??

Author
13 Apr 2006 3:27 AM
Dave
I'm putting two different types of objects in the clipboard but both are
marked Serializable.

Show quote
"Dave" <n***@nowhere.com> wrote in message
news:OB3XTmqXGHA.1192@TK2MSFTNGP04.phx.gbl...
> My objects seem to be put into the clipboard ok and
> Clipboard.ContainsData() is returning true but when I GetData() the object
> returned is null.  What am I doing wrong??
>
Author
13 Apr 2006 4:08 AM
Dave
The objects I'm trying to put in the clipboard are remoted objects (they
inherit MarshalByRefObject).  Could that be the problem even though they are
also marked with the Serializable attribute?  Don't objects HAVE to be
serializable to be remotable??

AddThis Social Bookmark Button