Scenario: You’re on your laptop, connected to some data source on network 1.
You physically move to network 2 and connect to some other data source there.
You then right-click a connection and choose disconnect all.
After some period of time, you get this error (presumably on the connections where you no longer have physical network access):
System.NullReferenceException
Object reference not set to an instance of an object.
Stack Trace:
at Quest.Toad.SqlServer.ActionHandler.DTC.DTCInvoke…ctor()
at Quest.Toad.SqlServer.Trl.DTC.DTCListTrl.get_ImageIndex()
at Quest.Toad.DatabaseBrowser.ObjectPaletteControl.SetNodeImage(TreeListNode node, ITrl trl)
at Quest.Toad.DatabaseBrowser.ObjectPaletteControl.RebuildUI()
at Quest.Toad.DatabaseBrowser.ObjectPaletteControl.set_CurrentType(String value)
at Quest.Toad.DatabaseBrowser.ObjectPaletteControl.SetActiveTrl(ITrl trl)
at Quest.Toad.DatabaseBrowser.ObjectPaletteControl.ConnectionChangedHandler(Object sender, ConnectionEventArgs e)
at Quest.Toad.Notification.ConnectionChangedEventHandler.Invoke(Object sender, ConnectionEventArgs e)
at Quest.Toad.Notification.NotificationManager.ConnectionChanged(Object sender, Connection connection)
at Quest.Toad.ConnectionManager.ConnectionHierarchy.set_CurrentConnection(Connection value)
at Quest.Toad.ConnectionManager.ConnectionHierarchy.RemoveConnection(Connection connection)
at Quest.Toad.Notification.NotificationManager.InternalConnectionClosed(Object sender, ConnectionEventArgs args)
Is there a way you could just trap for / not display errors on breaking connections to networks that no longer exist?
Darren