Results 1 to 5 of 5

Thread: DockPanel Suite Main Form Freezing on Close

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2012
    Posts
    70

    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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2012
    Posts
    70

    Re: DockPanel Suite Main Form Freezing on Close

    Yes, it happens even without the debugger.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2012
    Posts
    70

    Re: DockPanel Suite Main Form Freezing on Close

    Quote Originally Posted by jmcilhinney View Post
    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.
    Last edited by theryan722; Apr 24th, 2015 at 03:08 PM.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2012
    Posts
    70

    Resolved Re: DockPanel Suite Main Form Freezing on Close

    Quote Originally Posted by jmcilhinney View Post
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width