Bug 7309

Summary: Resources.GetXml - XmlReader.Name property Hangs without exception
Product: Android Reporter: Erasmo <esimo>
Component: Mono runtime / AOT CompilerAssignee: Bugzilla <bugzilla>
Status: RESOLVED FIXED    
Severity: normal CC: atsushi, mono-bugs+monodroid
Priority: ---    
Version: 4.2.x   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Tags: Is this bug a regression?: ---
Last known good build:

Description Erasmo 2012-09-19 15:38:59 UTC
The XmlReader object Obtained from Resources.GetXml(Resource.Layout.<Any Layout>) hangs the application upon trying to access the "Name" property.

Steps to reproduce:
 - Create any valid layout xml in Resources/layout
 - In a view try to get the Xml by using Resources.GetXml(<layoutId>);
 - Make a traditional while loop to read through your XmlReader and access the XmlReader.Name property
     OR
 - Just access the XmlReader.Name property

  No exception is throwns. The application just hangs until it crashes/closes without throwing an exception.
  If I try to access the XmlReader.Name property from the watch window in the debugger MonoDevelop hangs for a while and then a timeout text is shown in the value box for the watched variable.

Tested in:
 - Mono for Android 4.2.5, Mono Develop 3.0.4.6
Comment 1 Atsushi Eno 2012-09-20 14:26:22 UTC
Thanks for the report. This is fixed and will be included in the next release.