[Mono-list] JSON.NET / Mono question (Deserialization Hangs)

Adam Tauno Williams awilliam at whitemice.org
Mon Dec 6 08:53:21 EST 2010

On Mon, 2010-12-06 at 00:19 -0500, Bojan Rajkovic wrote: 
> On Dec 4, 2010, at 9:43:17AM, Adam Tauno Williams wrote:
> > mono-core-2.6.4-2.13.x86_64
> > Json.NET 3.5 Release 8
> > I call the deserializer and it works - I can see the objects created
> > (deserialized) but then the deserializer never exits/returns.
> > List<ListEntry> listed_entries =
> >   JsonConvert.DeserializeObject<List<ListEntry>>(payload);
> > Console.WriteLine("Deserialization complete");
> > ListEntry objects are created, then the program 'hangs'.
> > "Deserialization complete" never appears.
> Are any of your object creations throwing exceptions? I had an issue
> like this a /while/ ago where exceptions were being thrown by the
> object constructors, but JSON.NET was swallowing them silently.
> If you're not sure if you're getting exceptions, try running mono
> --trace=E:all your_app.exe to trace exception throws throughout the
> runtime of the process.

This was exactly the issue; deserialization was failing with assigning a
null to an int but no exception was raised.


Adam Tauno Williams <awilliam at whitemice.org> LPIC-1, Novell CLA
OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba

More information about the Mono-list mailing list