ObjectDisposedException

Docking/MDI for Windows Forms Forum

Posted 19 years ago by Jake Pearson - Software Developer, Alion Science and Technology
Avatar
Hi,
One of our QA people found a crash in the dock manager, it happens consistently in our program, but does not happen in your sample application. I will keep looking on my end, but here is the problem, in case you have an idea how to fix it.

1. Click the thumbtack to hide a tool window.
2. Put your mouse over the window to bring it back into view
3. Click on the thumbtack again to keep it in view
4. A ObjectDisposedException occurs with this message:
"Cannot access a disposed object named "AutoHideContainer"."

Here is the stack trace:

system.windows.forms.dll!System.Windows.Forms.Control.CreateHandle() + 0x6c bytes
system.windows.forms.dll!System.Windows.Forms.Control.get_Handle() + 0x34 bytes
system.windows.forms.dll!System.Windows.Forms.Control.CreateGraphicsInternal() + 0xe bytes
system.windows.forms.dll!System.Windows.Forms.Control.CreateGraphics() + 0x2b bytes
actiprosoftware.winuicore.dll!ActiproSoftware.WinUICore.UIControl.UpdateLayout() + 0x73 bytes
actiprosoftware.winuicore.dll!ActiproSoftware.WinUICore.UIControl.Invalidate(ActiproSoftware.WinUICore.InvalidationLevels levels = ElementAndChildren, ActiproSoftware.WinUICore.InvalidationTypes types = 7) + 0x265 bytes
actiprosoftware.winuicore.dll!ActiproSoftware.WinUICore.UIControl.OnLayout(System.Windows.Forms.LayoutEventArgs e = {System.Windows.Forms.LayoutEventArgs}) + 0x1b bytes
system.windows.forms.dll!System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl = {ActiproSoftware.UIStudio.Dock.AutoHideContainer}, string affectedProperty = "Bounds") + 0x7c bytes
system.windows.forms.dll!System.Windows.Forms.Control.OnResize(System.EventArgs e = {System.EventArgs}) + 0x43 bytes
actiprosoftware.winuicore.dll!ActiproSoftware.WinUICore.UIControl.OnResize(System.EventArgs e = {System.EventArgs}) + 0x20 bytes
system.windows.forms.dll!System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e = {System.EventArgs}) + 0x1c bytes
system.windows.forms.dll!System.Windows.Forms.Control.UpdateBounds(int x = 949, int y = 0, int width = 179, int height = 837, int clientWidth = 179, int clientHeight = 837) + 0xcc bytes
system.windows.forms.dll!System.Windows.Forms.Control.UpdateBounds(int x = 949, int y = 0, int width = 179, int height = 837) + 0xc8 bytes
system.windows.forms.dll!System.Windows.Forms.Control.SetBoundsCore(int x = 949, int y = 0, int width = 179, int height = 837, System.Windows.Forms.BoundsSpecified specified = Width) + 0x12e bytes
system.windows.forms.dll!System.Windows.Forms.Control.SetBounds(int x = 949, int y = 0, int width = 179, int height = 837, System.Windows.Forms.BoundsSpecified specified = Width) + 0x7f bytes
system.windows.forms.dll!System.Windows.Forms.Control.set_Width(int value = 179) + 0x1d bytes
actiprosoftware.uistudio.dock.dll!ActiproSoftware.UIStudio.Dock.AutoHideContainer.ᐁ(System.Object = {Interval=10}, System.EventArgs = {System.EventArgs}) + 0x238 bytes
system.windows.forms.dll!System.Windows.Forms.Timer.OnTick(System.EventArgs e = {System.EventArgs}) + 0x1f bytes
system.windows.forms.dll!System.Windows.Forms.Timer.DebuggableCallback(int hWnd = 0, int msg = 275, int idEvent = 6903, int dwTime = 597130250) + 0x2d bytes
system.windows.forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(int dwComponentID = 1, int reason = -1, int pvLoopData = 0) + 0x358 bytes
system.windows.forms.dll!ThreadContext.RunMessageLoopInner(int reason = -1, System.Windows.Forms.ApplicationContext context = {System.Windows.Forms.ApplicationContext}) + 0x1f3 bytes
system.windows.forms.dll!ThreadContext.RunMessageLoop(int reason = -1, System.Windows.Forms.ApplicationContext context = {System.Windows.Forms.ApplicationContext}) + 0x50 bytes
system.windows.forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm = {MAAD.Network.Utilities.ApplicationGUI.MicroSaintSharp}) + 0x34 bytes
> MAAD.MicroSaint.exe!MAAD.MicroSaint.Launcher.Main(string[] args = {Length=0}) Line 46 C#

Any idea would be appreciated.

thanks,
Jake

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jake,

Thanks for sending the project to us via email. We'll work with you over email on this.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.