<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://xceed.com/CS/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Other Windows Forms controls</title><link>http://xceed.com/CS/forums/12/ShowForum.aspx</link><description>Discussions about all other Xceed Windows Forms UI controls</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Debug Build: 61120.2)</generator><item><title>Re: DockingWindows exception occured when Close the window.</title><link>http://xceed.com/CS/forums/thread/29176.aspx</link><pubDate>Tue, 09 Nov 2010 17:09:07 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:29176</guid><dc:creator>Denis</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/29176.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=12&amp;PostID=29176</wfw:commentRss><description>&lt;p&gt;Done.&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>Re: DockingWindows exception occured when Close the window.</title><link>http://xceed.com/CS/forums/thread/29173.aspx</link><pubDate>Tue, 09 Nov 2010 15:08:15 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:29173</guid><dc:creator>Alain [Xceed]</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/29173.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=12&amp;PostID=29173</wfw:commentRss><description>&lt;P&gt;Hi Denis,&lt;/P&gt;
&lt;P&gt;Can you send us a sample application that reproduces this behavior to &lt;A href="mailto:support@xceed.com"&gt;support@xceed.com&lt;/A&gt; so that we can investigate further?&lt;/P&gt;</description></item><item><title>DockingWindows exception occured when Close the window.</title><link>http://xceed.com/CS/forums/thread/29166.aspx</link><pubDate>Mon, 08 Nov 2010 22:01:17 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:29166</guid><dc:creator>Denis</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/29166.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=12&amp;PostID=29166</wfw:commentRss><description>&lt;p&gt;I've investigated your ImagingCS example for docking windows.&lt;/p&gt;&lt;p&gt;I've added following source code to&lt;/p&gt;&lt;p&gt;ColorPalette.cs&lt;/p&gt;&lt;p&gt;    protected override void OnClosed(EventArgs e)&lt;br&gt;    {&lt;br&gt;        Imaging._Imaging.CloseToolWindow(this);&lt;br&gt;        base.OnClosed(e);&lt;br&gt;    }&lt;br&gt;&lt;/p&gt;&lt;p&gt;and  replace ColorPalette_VisibleChanged&lt;/p&gt;&lt;p&gt;private void ColorPalette_VisibleChanged(object sender, System.EventArgs e)&lt;br&gt;    {&lt;br&gt;        &lt;br&gt;    }&lt;br&gt;&lt;/p&gt;&lt;p&gt;and following code to Imaging.cs&lt;/p&gt;&lt;p&gt; /// &amp;lt;summary&amp;gt;&lt;br&gt;    /// The main entry point for the application.&lt;br&gt;    /// &amp;lt;/summary&amp;gt;&lt;br&gt;    [STAThread]&lt;br&gt;    static void Main() &lt;br&gt;    {&lt;br&gt;        _Imaging = new Imaging();&lt;br&gt;        Application.Run(_Imaging);&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    public static Imaging _Imaging;&lt;br&gt;&lt;/p&gt;&lt;p&gt;public void CloseToolWindow(ToolWindow tw)&lt;br&gt;    {&lt;br&gt;        m_manager.ToolWindows.Remove(tw);&lt;br&gt;        tw.Dispose();&lt;br&gt;    }&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;When Toolwindow X button pressed I've got the following crash application exception:&lt;/p&gt;&lt;p&gt;{"Collection was modified; enumeration operation may not execute."}&lt;/p&gt;&lt;p&gt;Source: Xceed.DockingWindows.v2.2&lt;/p&gt;&lt;p&gt;   at Xceed.Utils.Collections.ListBase.Enumerator.MoveNext()&lt;br&gt;   at Xceed.DockingWindows.FloatingWindow.OnFloatingWindowClosed()&lt;br&gt;   at Xceed.DockingWindows.FloatingWindow.WndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br&gt;   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)&lt;br&gt;   at System.Windows.Forms.NativeWindow.DefWndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Control.DefWndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Form.DefWndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Form.WmNcButtonDown(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Form.WndProc(Message&amp;amp; m)&lt;br&gt;   at Xceed.DockingWindows.FloatingWindow.WndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;br&gt;   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br&gt;   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)&lt;br&gt;   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)&lt;br&gt;   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)&lt;br&gt;   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)&lt;br&gt;   at System.Windows.Forms.Application.Run(Form mainForm)&lt;br&gt;   at Xceed.DockingWindows.Samples.Imaging.Imaging.Main() in C:\Xceed Samples\Xceed Docking Windows for .NET v2.2\CSharp\Imaging\Imaging.cs:line 212&lt;br&gt;   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)&lt;br&gt;   at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)&lt;br&gt;   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)&lt;br&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&lt;br&gt;   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)&lt;br&gt;   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)&lt;br&gt;   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;br&gt;   at System.Threading.ThreadHelper.ThreadStart()&lt;br&gt;&lt;/p&gt;&lt;p&gt;visualstudio 2010&lt;br&gt;&lt;/p&gt;&lt;p&gt;What do I wrong?&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>