[MonoTouch] Reflection / Serialization broken on device?
MonkeyWorld
steve at rennocks.co.uk
Fri Oct 21 08:54:14 EDT 2011
I'm using the XmlSerializer to read/write my apps data and all works fine in
the simulator plus when my app is built with the LLVM optimizing compiler,
however, with LLVM off it fails on the device...
Get *System.NullReference* exception in
*System.Xml.Serialization.XmlReflectionImporter..ctor()*
on this line...
XmlSerializer xs = new XmlSerializer (typeof(ExpenseData));
- where ExpenseData is class marked as serializable (and that does
(de)serialize fine on simulator + device with LLVM).
This is with iOS 5, MT 5.0, MD 2.8.
I'm fairly certain my ExpenseData class hasn't changed in quite some time
and used to serialize fine with previous versions of iOS and/or MT.
Any ideas anyone ??
-----
MonoTouch 'Contractor Expenses' app - www.Contractor-Expenses.com
--
View this message in context: http://monotouch.2284126.n4.nabble.com/Reflection-Serialization-broken-on-device-tp3925253p3925253.html
Sent from the MonoTouch mailing list archive at Nabble.com.
More information about the MonoTouch
mailing list