N
Nate
Has anybody else seen this with serialization?
I have some options for my application that I am serializing. The object is
serializable and otherwise serializes and deserializes fine. Sometimes
though, when I call the object.serialize method (of mine) the serializer
tries to serialize the form that I called this from as well as the object
itself.
I've tried various ways of getting around this:
(1) binformatter.serialize(oFSysObj, me)
(2) creating a temporary object of the same type, then manually going
through and coping property-by-property the settings from the object I want
to serialize to the temp object, and then called:
binformatter.serialize(oFSysObj, tempObject)
Still, only "sometimes" I will get an exception that says the form (that I
called the method from) does not have the "serializable" attribute set.
Why would the serialization try to serialize the form as well as the object,
I am explicitly keeping everything in the object.
Any ideas anybody?
I have some options for my application that I am serializing. The object is
serializable and otherwise serializes and deserializes fine. Sometimes
though, when I call the object.serialize method (of mine) the serializer
tries to serialize the form that I called this from as well as the object
itself.
I've tried various ways of getting around this:
(1) binformatter.serialize(oFSysObj, me)
(2) creating a temporary object of the same type, then manually going
through and coping property-by-property the settings from the object I want
to serialize to the temp object, and then called:
binformatter.serialize(oFSysObj, tempObject)
Still, only "sometimes" I will get an exception that says the form (that I
called the method from) does not have the "serializable" attribute set.
Why would the serialization try to serialize the form as well as the object,
I am explicitly keeping everything in the object.
Any ideas anybody?