Why do DockBars crash if two are created at once?

I have been playing around with the Rhino UI and what is possible, I came across DockBars which I can snap to any side of Rhino which is the kind of flexibiltiy I need.

DockBars can’t have their size changed so I decided to create a pair, one dock would have buttons which open/close the other DockBar. I found that every time I tried to use them however, the Plugin would crash and give a rabbit-hole type Windows error message.

I have narrowed down what makes it crash, and I wondered why this might be?

This code will crash Rhino.

DoubleDockPlugin.m_bar_one.Create(options_one);
DoubleDockPlugin.m_bar_two.Create(options_two);
RhinoWindows.Controls.DockBar.Show(DoubleDockBarOne.DockId, false);
RhinoWindows.Controls.DockBar.Show(DoubleDockBarTwo.DockId, false);

This code will not crash Rhino

DoubleDockPlugin.m_bar_one.Create(options_one);
RhinoWindows.Controls.DockBar.Show(DoubleDockBarOne.DockId, false);
DoubleDockPlugin.m_bar_two.Create(options_two);
RhinoWindows.Controls.DockBar.Show(DoubleDockBarTwo.DockId, false);

Below is the project with the sample project;
DoubleDockTest.zip (31.2 KB)