Profile Picture

Does any one happen to "cannot access disposed object error" when close Right Edge

Posted By Xu Wang 3 Years Ago

Does any one happen to "cannot access disposed object error" when...

Message
Posted Friday May 23 2014
Right Edge pops error dialog when close it, this happens when I start my real time tick data receive plugin. The tick data received plugin is modified from the Yye Software\RightEdge\2010.1.0.0\Samples\C#\RealTimeDataRetrieval.

Instead of create a thread to generate ticks, I create an Ice.Communicator to subscribe ticks from an IceStorm server. (ICE is middle ware http://www.zeroc.com/)

This is the error message:

An exception of type System.ObjectDisposedException was thrown.
Cannot access a disposed object.
Object name:“SandGrid”。
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.CreateGraphicsInternal()
at System.Windows.Forms.Control.CreateGraphics()
at Divelements.SandGrid.SandGridBase.x9a889a728e8f4746()
at Divelements.SandGrid.SandGridBase.x57078f942655a14e(GridElement x4bbc2c453c470189, FocusAdvanceDirection x23e85093ba3a7d1d)
at RightEdge.OutputPane.MakeLastRowVisible()
at RightEdge.OutputPane.AddOutputLine(SystemOutput systemOutput, Boolean ensureVisible)
at RightEdge.xf266856f631ec016.x8b41c111b16eba84(Object xe0292b9ed559da7d, SystemOutputEventArgs xfbf34718e704c6bc)


I now have no idea about this error. And no way to debug into Right Edge, can anyone help me about this? Thanks in advance.

Attachments
Posted Saturday May 24 2014
I have tied everything in the plugin. The problem is still there even if I just start the communicator then dispose it. Is it a RigghtEdge defect?

Welcome any comments.
Posted Saturday May 24 2014
Just use WinDbg to get a the call stack when the message showing.

My question is why MakeLastRowVisible is called here. As we know the RightEdge is shutdown now, there should no more GUI update.

And I know the plugin does not update any tick to RightEdge because the plugin is modified to not subscribe any data.

I'm totally confused now Sad
Please help.

00000000001de950 000007fe8c2ac1c7 RightEdge.OutputPane.MakeLastRowVisible()


0:000> !CLRStack
OS Thread Id: 0x1a30 (0)
Child SP IP Call Site
00000000001dbc90 00000000778f933a [InlinedCallFrame: 00000000001dbc90] System.Windows.Forms.UnsafeNativeMethods.WaitMessage()
00000000001dbc90 000007fee6240954 [InlinedCallFrame: 00000000001dbc90] System.Windows.Forms.UnsafeNativeMethods.WaitMessage()
00000000001dbc20 000007fee6240954 System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
00000000001dbe20 000007fee623fecc System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
00000000001dbf70 000007fee623f87f System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
00000000001dc000 000007fee687187f System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
00000000001dc360 000007fe8c2ab907 RightEdge.xf266856f631ec016.x8b41c111b16eba84(System.Object, RightEdge.Common.SystemOutputEventArgs)
00000000001de1f8 000007fee93f7b15 [HelperMethodFrame: 00000000001de1f8]
00000000001de2e0 000007fee6dac3d2 System.Windows.Forms.Control.CreateHandle()
00000000001de3e0 000007fee6227908 System.Windows.Forms.Control.get_Handle()
00000000001de420 000007fee619e88a System.Windows.Forms.Control.CreateGraphicsInternal()
00000000001de450 000007fee619e84a System.Windows.Forms.Control.CreateGraphics()
00000000001de4c0 000007fe89c8b202 Divelements.SandGrid.SandGridBase.x9a889a728e8f4746()
00000000001de5d0 000007fe8c2ac441 Divelements.SandGrid.SandGridBase.x57078f942655a14e(Divelements.SandGrid.GridElement, Divelements.SandGrid.FocusAdvanceDirection)
00000000001de950 000007fe8c2ac1c7 RightEdge.OutputPane.MakeLastRowVisible()
00000000001de9a0 000007fe8c2abd6c RightEdge.OutputPane.AddOutputLine(RightEdge.Common.SystemOutput, Boolean)
00000000001dea20 000007fe8c2ab8d7 RightEdge.xf266856f631ec016.x8b41c111b16eba84(System.Object, RightEdge.Common.SystemOutputEventArgs)
00000000001deaa0 000007fe8c2ab711 RightEdge.Common.Internal.REWriter.DoOutput()
00000000001deb10 000007fe8c2ab5c3 RightEdge.Common.Internal.REWriter.WriteLine(System.String)
00000000001deb60 000007fee80dbcbf System.IO.TextWriter+SyncTextWriter.WriteLine(System.String)
00000000001debb0 000007fee777089a System.Diagnostics.TextWriterTraceListener.WriteLine(System.String)
00000000001dec00 000007fee724cceb System.Diagnostics.TraceInternal.WriteLine(System.String)
00000000001dec90 000007fe89c64c64 RightEdge.AppMain.Main(System.String[])
00000000001df0e0 000007fee9299e03 [GCFrame: 00000000001df0e0]


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems