PS
Prakash S
Syncfusion Team
May 21, 2003 12:16 PM UTC
Hi Stuart,
This is not something that we have come across. If you can isolate the conditions and are able to reproduce the problem, please send over a sample and we will look into it. One thing that you could try though would be turn on Exceptions within the VS.NET IDE and then run your app a few times. That should help identify the placement of the null instance. Are you performing any custom initialization of the docking layout inside your application?
Prakash
Syncfusion
SS
Stuart Smith
May 23, 2003 09:11 AM UTC
Hi Prakash,
I have managed to fix this now.
Basically I had some code in the DockVisibilityChanged event that created a Memento of the visibility of each docked control
- this was then used by Undo / Redo functionality.
I was filtering the events by an 'isLoading' flag, however if the DockState was anything other than the default the event was being triggered by the Form Layout event. I added a 'isLayingOut' flag, and it seemed to solve the problem.
I'm not entirely sure why, but the reference to the docking manager stored in the Memento object was screwing up the LoadDockState. The Memento works fine otherwise.
Thanks for your time,
Stuart