Disconnect All when no longer connected to physical network error

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

Hi Darren,
I wasn’t tried to replicate exact your case with two networks, but I just played with my network connection and discovered similar exception…
We will try to improve this error handling in the next release. I’ve created CR79039 to be sure that it will be investigated.
Thank you for the reporting.

Excellent, I was constantly getting these problem and also reported them, but
could not really pin it down.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn.com

678.414.0090 my cell Primary
image002.jpeg

Excellent, I was constantly getting these problem and also reported them, but
could not really pin it down.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn.com

678.414.0090 my cell Primary
image001.gif