B
Babu Mannaravalappil
Can somebody please help me figure out why the following method
exceptions out?
Execution at the line marked with ********** hangs for about 15
seconds and then I get an error that says an Unhandled
StackOverFlowException occurred. The execution does not even get
passed to the catch block. At the time of my test, only one of 12
tables in the dataset (catalogsDS) really has changes. The dataset is
not a huge one. Most tables have less than 15 rows and 5 to 10
columns each.
Here is my Dev environment, just in case.
XP Pro (including all the latest patches) on P4 with 1GB RAM
VS.NET 2003 Ent. Arch. with .NET 1.1
Sql Server 2000 Local database.
private void btnUpdateDatabase_Click(object sender, System.EventArgs
e)
{
try
{
if (catalogsDS.HasChanges())
{
DataSet xDs;
xDs = catalogsDS.GetChanges(); //**********
if (!xDs.HasErrors)
{
da = DataAdapters.CatalogsAdapter();
da.Update(xDs);
UpdateStatusBar("The database has been successfully updated!");
}
}
}
catch (System.StackOverflowException st)
{
MessageBox.Show(st.Message + "\n" + st.StackTrace);
}
catch (System.Exception ex)
{
MessageBox.Show(ex.Message + "\n" + ex.StackTrace);
}
}
exceptions out?
Execution at the line marked with ********** hangs for about 15
seconds and then I get an error that says an Unhandled
StackOverFlowException occurred. The execution does not even get
passed to the catch block. At the time of my test, only one of 12
tables in the dataset (catalogsDS) really has changes. The dataset is
not a huge one. Most tables have less than 15 rows and 5 to 10
columns each.
Here is my Dev environment, just in case.
XP Pro (including all the latest patches) on P4 with 1GB RAM
VS.NET 2003 Ent. Arch. with .NET 1.1
Sql Server 2000 Local database.
private void btnUpdateDatabase_Click(object sender, System.EventArgs
e)
{
try
{
if (catalogsDS.HasChanges())
{
DataSet xDs;
xDs = catalogsDS.GetChanges(); //**********
if (!xDs.HasErrors)
{
da = DataAdapters.CatalogsAdapter();
da.Update(xDs);
UpdateStatusBar("The database has been successfully updated!");
}
}
}
catch (System.StackOverflowException st)
{
MessageBox.Show(st.Message + "\n" + st.StackTrace);
}
catch (System.Exception ex)
{
MessageBox.Show(ex.Message + "\n" + ex.StackTrace);
}
}