Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6824195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:52:22+00:00 2026-05-26T21:52:22+00:00

The Windows 7 window manager regularly detects my WPF app as being hung ,

  • 0

The Windows 7 window manager regularly detects my WPF app as being hung, ghosts it and pops up a not responding message. I’ve been using the app for several weeks and haven’t seen it but a user with the same hardware as me says he gets it regularly.

Everything that can be is run in a task on another thread, so I’m not sure where to begin looking for the issue. If the user waits for the application to respond it recovers quickly so I’m assuming the issue is something on the GUI thread that occasionally takes just over 5 seconds to run.

Is there any way I can detect when the DWM thinks the app has hung so I can log a stack trace?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:52:23+00:00Added an answer on May 26, 2026 at 9:52 pm

    I haven’t done this in a WPF app, but the traditional way would be to send a WM_NULL message from a background thread every so often using SendMessageTimeout, and if the main UI thread doesn’t process the message in, say, 30 seconds, generate a stack dump for that thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Vista and later, if an app becomes unresponsive, the Desktop Window Manager is
Apples 64 bit documentation says, The Window Manager is not available to 64-bit applications.
I want to implement a simple specialized window manager for presentations (not user-controllable) that
X Windows has special processes called Window Managers that manage the layout of windows
I want to make a window manager in either of these languages (Preferably ruby).
I'm starting to code up my own window manager, and was wondering how to
I'm playing around with Django on a guest Ubuntu minimalist VM (no window manager).
I find the concept of the programmable, tiling, keyboard-focuessed window manager ion3 very appealing,
Windows Task Manager lists all running processes in the Processes tab. The image name
I'm curious how the windows device manager obtains the hardware IDs for a device,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.