Winforms UI freezes randomly after some time if following conditions are met RRS feed

  • Question

  • Hi folks,

    I have been spending some sleepless nights over this problem and I can't seem to figure out why. I would so much appreciate any help from the community.

    I have a Winforms application which freezes randomly after some time if following conditions are <g class="gr_ gr_702 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="702" id="702">met :</g>

    1) When I push a button which starts a separate UI thread creating a WPF modal dialogue   AND

    2) when this WPF modal dialogue creates another Winforms modal dialogue 

    Note: Main Winforms application freezes after some time after having performed 1) and 2)

    Also note: that when 1) and 2) happens in a separate process instead of thread, then Winforms application doesn't freeze after some time. Moreover if 2) doesn't happen, then also there is no application freeze. Also, I tried 2) with an empty Winform modal dialogue with no code and it still causes the issue

    On Debugging:

    After froze, following info is seen on <g class="gr_ gr_1116 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="1116" id="1116">callstack</g>

    1) Main Application thread is waiting on  DispatcherOperation.WaitOne() with no upper call stack available

    • Moved by Bob Ding Tuesday, May 30, 2017 2:06 AM
    Saturday, May 13, 2017 4:46 AM

All replies

  • Hi,

    For your case is random,  it seems there is really no quick fix for this problem, because we know nothing about your application.

    I suggest you post your question at Windows Desktop Debugging forum, you can get more help from this forum.


    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, May 16, 2017 6:55 AM