DockPanel Suite Main Form Freezing on Close
Hello, recently I decided to implement the WeifenLuo DockPanel Suite into my VB.NET application. Everything works fine, until you try and close the application, where it then freezes. Nothing happens.
I tried disposing of the DockPanel before closing, I tried using Application.Exit() I tried running Application.DoEvents() before running, and even closing any open DockPanel forms before closing. Nothing, it still simply freezes.
The output shows the following messages:
With the thread names being different each time. However I don't have any threads running?
Code:
The thread 0x1f34 has exited with code 259 (0x103).
The thread 0x22b8 has exited with code 259 (0x103).
Any thoughts? I can't find anyone else with this issue online, and it is really frustrating.
Thanks.
Re: DockPanel Suite Main Form Freezing on Close
Does this only happen when running the project in the debugger? If you use Ctrl+F5 to run without debugging, do you still get the same behaviour?
Re: DockPanel Suite Main Form Freezing on Close
Yes, it happens even without the debugger.
Re: DockPanel Suite Main Form Freezing on Close
Quote:
Originally Posted by
jmcilhinney
Does this only happen when running the project in the debugger? If you use Ctrl+F5 to run without debugging, do you still get the same behaviour?
It happens even without the bugger. It is also only occurring on the main form that houses the DockPanel. Even if I create a new form with the DockPanel, the same thing happens. It appears to only happen if I place a DockPanel on the form.
Re: DockPanel Suite Main Form Freezing on Close
Quote:
Originally Posted by
jmcilhinney
Does this only happen when running the project in the debugger? If you use Ctrl+F5 to run without debugging, do you still get the same behaviour?
I was able to resolve the issue. In my form closing event, I was improperly iterating through all of the open DockContent items, causing the form to hang.
Thanks.