This is a discussion on Data column limitation? - DOTNET ; Hi, I get a stack overflow error on the ReadXml command when I try to read a xml file in a Windows Mobile 5.0 application ( VB .NET) on a PDA device and in the emulator. The xml file has ...
I get a stack overflow error on the ReadXml command when I try to read a xml
file in a Windows Mobile 5.0 application (VB.NET) on a PDA device and in the
emulator. The xml file has about 480 data columns but not much data. When
running the same application in Windows XP I do not get a stack overflow.
Also if the data column amount is smaller I do not get a stack overflow error
in the compact framework although the data amount would be quite large. I am
able to open the xml file with about 480 columns in Internet Explorer on the
mobile device without any errors.
Here is my code:
Dim ExistingDataSet As DataSet
ExistingDataSet = New DataSet
Dim FsXML As New FileStream(AnswerFile, FileMode.Open)
Dim xtrXML As New XmlTextReader(FsXML)
Does the VB.NET ReadXml command has some undocumented limitation on how many
data columns a xml table can have? Microsoft's documentation says that the
table can have over 16 million data rows, but nothing is said about how many
columns there can be.
Is there some kind of workaround for this problem? E.g. Internet Explorer
can open the xml file without any problem on the PDA.