title: AccessViolationException at Xsl Transform
body: <p>Below is the code which pefrorm the xsl transformation.
  the code works fine if xslt file contains 15 or less sheets.
  However when there are more than 15 sheets it gives the following error.</p>
  
  <p>Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</p>
  
  <pre><code>                    using (var tw = new XmlTextWriter(xlsFileNameWithPath, System.Text.Encoding.UTF8))
                      {
                          tw.Formatting = Formatting.Indented;
                          tw.Indentation = 3;
                          tw.WriteStartDocument();
                          xsl.Transform(xmldoc, null, tw); //Performa XSLT transformation.
                      }
  </code></pre>
  
  <p>Is there any limit to number of sheets or size of file to transform?
  Any help will be appreciated.</p>