Select to view content in your preferred language

Ifeatureworkspace.Opentable exits the .Net application without throwing any exception!

1570
1
12-14-2016 10:55 PM
ChandanKumar
New Contributor

Hi All,

Is there any way to troubleshoot the below line of code:

Dim childTable As ITable = childFWS.OpenTable(tableName)

            WriteTablesLog("FindVersionDifferencesForDelete\" + " reteive table:" + tableName + " with child version " + DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss tt"))

 

The above code is not throwing any exception or error but just exits the application.

 

I can open this table using the User and Version as used by my application in ArcMap.

Any suggestion is appreciated!

Regards,

Amit

0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor

Put this in a Try..Catch block and see what the error is.

Try
  Dim childTable As ITable = childFWS.OpenTable(tableName)
  WriteTablesLog("FindVersionDifferencesForDelete\" + " reteive table:" + tableName + " with child version " + DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss tt"))
Catch ex As Exception
  System.Windows.Forms.MessageBox.Show(ex.Message & vbNewLine & ex.StackTrace.ToString, "Open Table error")
End Try‍‍‍‍‍‍