Open GoogleCodeExporter opened 9 years ago
got a similar issue.
The line that seems to cause the problem is:
Object = new Derived1();
if you don't initialize the member, it works fine.
Original comment by sebastia...@googlemail.com
on 5 Jan 2012 at 2:47
I am having similar issues with casting across siblings in general. I'll try
the fix in comment 1 and see if I can't get a workaround going.
It does seem to be based upon object state/initialization, and is proving
really hard to track down.
In my VM everything works, casts and transports correctly. When hooked up to
hardware, it fails casts.
Original comment by mikepe...@gmail.com
on 10 Feb 2012 at 7:17
ok, delved a bit deeperi nto the code and one of my colleagues coded a number
of items that looked like what causes this:
http://stackoverflow.com/questions/6916294/cast-sometimes-throws-exception-but-a
s-followed-by-dereference-does-not
My problem might not necessarily be the same, and while we're not serializing
any of those properties, they may be why the cast is failing.
Original comment by mikepe...@gmail.com
on 10 Feb 2012 at 7:44
Also got a similar issue after migrating from v1 to v2
Original comment by ghu...@gmail.com
on 10 Sep 2012 at 2:29
Original issue reported on code.google.com by
logix...@gmail.com
on 2 Dec 2011 at 11:17