Problem: .NET application stops executing but does not produce an error
When running an ArcObjects application written in Visual Studio .NET, the code stops executing, but does not return an error.
Exception handling needs to be added to the application.
Solution or Workaround
The C# and Visual Basic .NET code samples show how to add exception handling to the application.
- C# exception handling
//Code that might cause an error
catch (Exception ex)
//cleanup code goes here
- Visual Basic .NET exception handling
'Code that might cause an error
Catch ex As Exception
Last Published: 5/5/2016
Article ID: 000006253
Software: ArcGIS-ArcInfo 9.3.1, 9.3, 9.2, 9.1, 9.0, 8.3