Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

Commented Issue: Exception at DockingManager unload time [AssemblyVersion("2.0.1771")] [15962]

$
0
0
By advance, excuse-me because I'm a new user of CodePlex (so I don't know how to report an issue), and because I'm... French, so my english can be bad very often !! YeWell, here's the issue:
When a DockingManager is created but is never visible (for example in a TabItem of a TabControl), _autoHideWindowManager member stays null. But when this DockingManager is unloader, the event handler DockingManager_Unloaded is called and there is an exception on "_autoHideWindowManager.HideAutoWindow();" line since _autoHideWindowManager is null.

I think that this code :
if (_autoHideWindowManager != null)
{
_autoHideWindowManager.HideAutoWindow();
}
should be better to manage this case (DockingManager never visible before to be unloaded)
Comments: ** Comment from web user: rickSaw **

Sorry, the null check did work for me.

I had a reference to the DLL from NuGet instead of the source code I was compiling.


Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>