W
wyrd
I've been trying to track down a deserialization error I've been
getting for a while now, and I think I found the cause. The error I
was getting is when trying to deserialize from a file.. and yes I'm
using StreamingContextStates.File. Here's the error;
"The object with ID 4097 was referenced in a fixup but has not been
registered."
The class in which I serialize is nothing more then a two dim array,
structs, a bool value, and some strings. The two dim array is made up
of structs.
Being confused as I was, I marked the two dim array so it wouldn't
serialize. Oddly enough, the deserialization worked after that (after
reserializing the altered class of course).
I tried serializing both a jagged array and a regular array; stuff[][]
and stuff[,]. Both give the deserialization error. Marking this two
dim array to not serialize is not an option, neither is using an
ArrayList in replace of it.
Is there any way to fix this? I'm still confused as to why a two dim
or jagged array will not serialize and deserialize correctly.
Thanks in advance.
getting for a while now, and I think I found the cause. The error I
was getting is when trying to deserialize from a file.. and yes I'm
using StreamingContextStates.File. Here's the error;
"The object with ID 4097 was referenced in a fixup but has not been
registered."
The class in which I serialize is nothing more then a two dim array,
structs, a bool value, and some strings. The two dim array is made up
of structs.
Being confused as I was, I marked the two dim array so it wouldn't
serialize. Oddly enough, the deserialization worked after that (after
reserializing the altered class of course).
I tried serializing both a jagged array and a regular array; stuff[][]
and stuff[,]. Both give the deserialization error. Marking this two
dim array to not serialize is not an option, neither is using an
ArrayList in replace of it.
Is there any way to fix this? I'm still confused as to why a two dim
or jagged array will not serialize and deserialize correctly.
Thanks in advance.