How to track bug - Program stopped responding.

Occasionaly my app crashes with just the common Windows' message - Program stopped responding. I get no error message. How to track the bug?
... Podlesnick ...

Sounds like there's an unhandled exception that's perhaps occurring on a background thread.  I suggest adding an event handler for your AppDomain's UnhandledException event and putting some logging in there:
https://msdn.microsoft.com/en-us/library/system.appdomain.unhandledexception%28v=vs.110%29.aspx
You may also need to modify your application's default unhandled exception behavior:
https://msdn.microsoft.com/en-us/library/ms157905%28v=vs.110%29.aspx
The information on the above pages should be enough to ensure almost* all exceptions can get caught by your code before triggering Windows Error Reporting.
(*Exceptions caused by the whole system being in an unstable state, such as a kernel mode issue, may not be caught - at that point all bets are off).
Quanta,
    I think that there is a bug in your thinking.
 - I agree that a worker thread may cause a Kernel error
 - I agree that this kernel error may cause the application to get unstable and can cause the UI thread to start to hang waiting for a return value
 - And I agree that if this happen then this message will pop 
However,
 - If the error was silent, it is that the worker thread never returned (Otherwise, the error would have been propagated.
 - If the message has popped, it is that the UI thread is hanging (deadlocked)
Then if all your threads are blocked, ... Which thread will raise the Unhanded exception event?? ... all your threads are stopped or blocked somewhere.
This is why In the code example I showed, I used a Timers.timer to create the exception and stop the application. The Timers.timer object bring a new thread in the application when the application start to hang. This thread can be used to resolve the situation.
I choose to Abort the UI thread as it is the only logical thing to do. Plus doing this gives us the stack trace and info needed for debugging

Similar Messages

  • Program stops responding when I right click

    Hello,
    I have recently been having trouble right clicking on my macbook pro. Every time I try to do so, the rainbow wheel shows up and my program stops responding. I have tried switching the right click method on my track pad, but there are no changes. Do I have a virus?

    Repair permissions and restart your comp.  If that does not work, then try the following:  CLICKY CLICK---> http://support.apple.com/kb/HT4718
    Do I have a virus?
    NOPE!  There are no viruses for OS X yet.

  • I have Adobe Photoshop Album 1.0 & suddenly cannot send photos thru e-mail.  It looks like it's working ok; but when I hit Send nothing happens and the program stops responding.  Any suggestions?

    I have Adobe Photoshop Album 1.0 & suddenly cannot send photos thru e-mail.  It looks like it's working ok; but when I hit Send nothing happens and the program stops responding.  Any suggestions?

    I have starter 3.0 and cannot share pictures via outlook express. Evidently that version is discontinued and my outlook express does not support the MAPI that is required. I think the only solution is to upgrade to photoshop
    elements or to send photos as attachment to your e-mail.  I have the same problem using Zoom Browser EX sending photos via internet. I spent a whole day trying to resove this issue and have exhausted all options. Just like "Instant share" in HP image Zone that was replace by photoshop album starter 3.0 and now it is out dated.

  • Program stops responding on adding a text

    I'm doing a lesson from the official tutorial.
    When I attempt to add a new text layer the program stops responding. Windows Task Manager says that Photoshop is working, but nothing happen. Though it seems like the system is working on something.
    Can I fix this myself?
    Attached file

    All settings are default.
    PC specs:
    QuadCore Intel Core i7-930
    6144 MB  (DDR3-1333)
    NVIDIA GeForce GTX 570  (1280 MB)
    Windows 7 SP1 x64
    Photoshop CC 2014.2.0 x64
    By the way, looks like the problem has gone.

  • Is there anyone who can help me? my Photoshop CC is keep crashing, it doesn't show any error message. Suddenly " program stop responding" after few seconds of launch.

    Is there anyone who can help me? my Photoshop CC is keep crashing, it doesn't show any error message. Suddenly " program stop responding" after few seconds of launch.

    If Photoshop crashes the should be a System crash report generated by your OS. For example Windows

  • The program stops responding to delete messages, changing to another message. How do I fix it?

    My program won't delete messages easily. I have to sit and wait for each to delete. It won't change to another message after deleting, just sits on the one it landed on. If I close the program several times, it may work normally for a while, but then reverts back to not responding. I am getting very frustrated with the program not responding to commands.
    Besides that problem, I have 5 different inboxes, and can't get rid of the ones I don't use. I have 2 trash files, and can't get rid of those either. I don't want to just delete the whole program and go to another provider because I have professional papers stored here and don't want to lose them.

    What is your anti-virus software?

  • Programs stop responding when I try to print to PDF

    Info on what I'm using:
    OS: Windows 7 Home Premium, SP1, 64-bit
    Using Adobe Acrobat 8 Professional, version 8.1.0, up to date on updates
    In this example, Microsoft Office 2007, no add-ons besides the Adobe Acrobat add-in that allows the creation of a PDF (but happens in all programs)
    Problem:
    I have always created a PDF from a Word/Excel document by printing to PDF (File --> Print --> Select Adobe PDF as printer --> Hit OK). Generally, the next step that occurs is a dialog box appearing that prompts me to select the location where I want to save the PDF and to specify a file name. Several weeks ago, this process stopped working. Now when I hit "Ok" to print to PDF, no dialog box appears and whatever program I'm in freezes/stops responding. Aside: I have tried printing to PDF from several other programs to see if the problem occurs in those as well, and it does -- printing to PDF freezes whatever program I am attempting to print from. (For example, MS Paint, Internet Explorer, Firefox, even Notepad)
    Bullet point summary of what I have tried:
    Canceling the print jobs in the Adobe PDF printer under "Devices and Printers" (jobs say they are canceling but never clear from the print queue unless I go into Services and restart my print spooler) and reprinting (freezes again)
    Restarting computer (had no effect)
    Setting Adobe PDF as my default printer (had no effect)
    Setting TrueType font as "Native TrueType" under the Adobe PDF printer properties (Layout --> Advanced --> PostScript Options) (suggested in another thread I read about this problem; had no effect)
    Checking to make sure that Word had not "adjusted" the security settings for the Adobe add-in (disabling it) under the Trust Center (Adobe add-in was still enabled, so nothing to change there)
    Changing the printer properties to print directly to the printer rather than spooling first (had no effect)
    Saving as PDF using File --> Save As --> Selecting PDF as file type (does work and is an acceptable substitute except when I need to convert multiple files to PDF at once and don't have time to go in to each individual file and convert it separately)
    Repairing the Acrobat installation from within Adobe or from the Programs and Features menu under the Control Panel (does work, did fix the problem; but see followup below).
    Repairing the Acrobat installation worked when I did it a few weeks ago. Once I went through the process, I attempted to print a document to PDF and it worked. But this morning when I attempted to print another document to PDF, it froze Word again and has been doing that ever since, so it does not seem to be a permanent fix. I had succesfully printed several documents to PDF this morning before it stopped working; the document I printed to PDF immediately before the document that froze was the exact same as the document froze in every way except the actual text (formatting, document objects, etc.). So I don't think it was something in the content of the document that "broke" the Adobe PDF printer.
    I am sure I can try repairing the Adobe installation again, but I really do not want to have to do that all of the time. Does anyone know what the problem is? I haven't found anything that explains what's going on.

    Anyone?

  • P6 windows does not start at times. Other times programs stops responding and then whole lot sraches

    p6 windows does not start sometimes at times it does progarams stop responding. The whole lot has crashed twice needing me to do a recovery. What is going on. The computer is slow this time after doing a system recovery

    @Harty, 
    In your very first post you stated, this issue started after a system recovery, how long ago did you do the recovery?
     Please respond back at your earliest convenience.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • While upgrading iphoto database, the program stops responding.

    I updated my iPhoto, but when the progam opens it says it must upgrade the iphoto library.  When I do this, it stops responding near the end of the upgrade.

    Try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run Option #4, Rebuild Database, followed by Option #1 if needed.
    OT

  • How to deal with "Script stopped responding" in general Part 3

    OK, I have asked about this issue before, and am back because it won't go away.
    First, I have tried resetting Firefox. Yesterday was the most recent time.
    I have tried using add-on Script Blockers.
    The Script Blocker program worked for a while. The problem is that the primary source of the script problems are Hotmail and Gmail, and I need to have these functioning and open. Plus it is not easy to determine what a script does before deciding to let it in.
    So I'm going to start from the computer user perspective: Why does this happen at all?
    I understand the need for scripts to be used for websites to function. What I don't understand is why my entire computer slows to a crawl, some programs get cut off entirely, and then I have to try to figure out what webpage is causing the problem...slowly. Even when I click the box to stop the script, my computer is still incredibly slow for an unreasonable amount of time. By unreasonable amount, I mean that it is so long that I can't even close Firefox within 5 minutes just to make it stop. By unreasonable amount, I mean I have actually just set my computer to restart so that Firefox will be forced closed and then cancel the restart when Firefox shuts down.
    What can Hotmail, Gmail, or any other program be doing that is of sufficient importance that it can essentially take over the computer? Nothing that isn't critical to the functioning of the computer should have this power. There is nothing critical about a script on Hotmail while I'm not even using that should let it take over all of the computer's resources. I would rather have Hotmail crash and shut off than have it let a script take over my computer. I can click on my Hotmail start up button within seconds while a script that won't respond might take 15 minutes to deal with.
    So can someone please explain to me why this system exists? Why isn't there a command that says "a script may use up this amount of processing power only" that allows a person to keep using their computer while the script futily whirls away? Why isn't there a way to have an automatic setting like "let a script try to run for X seconds and if it doesn't work just stop it"? Why doesn't a window pop-up on the computer screen regardless of where the script problem is to alert you what webpage is causing the problem instead of making the user guess?
    There doesn't even seem to be much purpose to the scripts. If I stop a script that is not responding on Hotmail, I can still use Hotmail when the computer recovers. So why does this happen?
    This system seems insane to me. Honestly, I don't understand why scripts are allowed to do this. Can someone at least help with an explanation of why this happens? Why there isn't a way to make it stop? In a world of apps it seems like something that would kill non-responding scripts after a brief time would be a winner. How did we reach this chokepoint in computer functioning and why haven't we figured out how to stop it?
    Thank you for any help, whether it be fixing the problem or just explaining the purpose.

    Hi auzziewog, a couple of thoughts on long pauses.
    In some cases, this is caused by Firefox waiting on content from the server, or loading some content into a plugin. Other than blocking some extraneous content in pages and setting plugins to "Ask to Activate" (click-to-play) on the Add-ons page, this is a hard problem to solve.
    If the problem is a script (the eventual appearance of the dialog suggests that possibility), please see the above reference post.
    Perhaps it is a combination of those things, since scripts often run after some other elements are loaded...

  • Win 8.1 programs stop responding.

    over the past few week I've ben experiencing a strange occurrence. At random times usually in the evening my system will freeze after it's been idol for some time. If I have IE open and hit a link to go to it the system won't respond. If I try to open task
    manager it also won't open. Some times if I let it sit for a time things will start responding. Usually I'll end up having to restart the system. After it reboots it's fine.
    I've tried looking in event manager but can't seem to find anything that points to a cause. Could someone suggest a way I may find out what it is. TIA

    Hi,
    We can also use the WPT tool (Windows Performace Toolkit) to analyze this issue, reproduce this issue and collect the trace file, upload it to OneDrive, then paste the download link here for further analysis
    Install the Windows Performance Toolkit (WPT)
    http://social.technet.microsoft.com/wiki/contents/articles/4847.install-the-windows-performance-toolkit-wpt.aspx
    WPT: WPR/Xperf: Capture high cpu, disk i/o, file, registry, networking, Private bytes, Virtual bytes, Paged Pool/Nonpaged pool and/or application slowness.
    http://blogs.technet.com/b/yongrhee/archive/2012/11/23/wpr-xperf-capture-high-cpu-disk-i-o-file-registry-networking-private-bytes-virtual-bytes-paged-pool-nonpaged-pool-and-or-application-slowness.aspx
    Yolanda Zhu
    TechNet Community Support

  • I have the newest version of the iTunes and whenever I try to put my music on it the program stops responding. Does anyone else have this problem

    I'm using a dell computer Inspiron 530

    Refer to this article:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1717

  • ITunes 10.6.1 x64 regularly stops responding.

    Hello -
    My name is Erick and I'm an ACMT/Network Engineer; Apple-certified, but not Apple-employed.
    I have experienced an issue with iTunes 10.6 in general that has not been resolved by the latest update to 10.6.1. Upon opening the iTunes application, it initially responds but within 15 seconds freezes and is Not Responding. The unresponsiveness lasts up to five full minutes, then the program begins working again. The issue appears to begin as the iTunes Match cloud icon begins animating and checking for updates to my music library.
    The same situation also occurs regularly if/when I make changed to a Smart Playlist. The program stops responding for up to five full minutes, then works properly.
    Here's some additional information about what I've already attempted in efforts to fix the issue. Does anyone have any suggestions or recommendations for how I might remedy this issue? While it's not crippling my use of the application entirely, it does cause unexpected headaches and delays, and it'd be great to fix it.
    I've attempted to resolve the issue by opening a new library and using it temporarily to test, rebuilding the library by starting fresh and importing from my iTunes Library file, and I've also attempted to use iTunes 10.6.1 from a different user account. Finally, I loaded iTunes 10.6.1 onto my external troubleshooting drive which is running the same OS. I've seen the issue persist in each situation. I've also attempted to run iTunes in 32-bit mode as I experienced some success with this fix related to other issues in the past.
    I am using an iMac 27" with the quad i7, 16GB, and a 1TB hard drive. All of my music is on iTunes Match and none of it is being stored locally on this machine. My TV and Movies are being stored on an external 2TB drive, as is the iTunes Library file itself.
    I would be happy to provide any logs or additional information that could help resolve this problem. I appreciate any assistance and hope to have this resolved at some point. My iMac is typically on 24/7 as it operates as a streaming server for services like StreamToMe, SugarSync, Plex, and other file services. Additionally, iTunes is typically open 24/7 to provide streaming ability to my Apple TVs (1080p versions), though I do have a scheduled task which exits and re-opens iTunes at 4:30AM to prompt syncing of my iOS devices before I head to work (putting the latest unwatched media on them).
    I'm sure some of this is unnecessary or extraneous information, but I wanted to be thorough in my explanation and context. Thanks again for your assistance, everyone.

    I have resolved my issue with iTunes' unresponsiveness and wanted to post the solution for anyone who might be experiencing similar symptoms. It was really quite simple to fix, I just didn't see it for what it was:
    iTunes Match was causing iTunes to stop responding for several minutes at a time, and several times a day.
    iTunes Match - which also forces Genius Mode to be on (something that used to cause my iTunes 10.5 to freeze before I turned it off) - would regularly attempt to refresh my database of 21,000 matched songs (none of which were stored on the computer - just in the cloud) and when it would attempt to update or refresh that library, the program would stop responding.
    The constant queueing of iTunes Match / Genius also caused iTunes to consume a significant amount of RAM - something that was also causing issues and which I posted about in another discussion.
    So, the simple solution was this: Turn iTunes Match off and iTunes quits freezing.
    Now, that of course completely eliminates the usefulness of iTunes Match since the music is no longer accessible on this machine in this iTunes Library. So how to restore its usefulness without recreating the problem? Slightly more aggravating, but still working right: I created a separate, fresh new library and named it iTunes Match. When I need music, I hold option when selecting the iTunes app and select my Match Library, which has NOTHING else in it but iTunes Match. When I'm done with the music, I switch back to my 24/7 media streaming library that has my 2TB of TV Shows & Movies (and device sync relationships) in it.
    It doesn't seem like iTunes Match causes freezing and RAM ballooning all by itself, it just seems like in a library that's also full of other stuff, it's the final straw that kills the performance. Split the libraries up and things seem to work really well in both.
    Not a perfect solution, but until the next release of iTunes, this may be the best bet. I hope this helps someone else out there, but it at least cleared up my issue. Thanks for reading.

  • Bridge stops responding to Wacom pen clicks in Windows 8

    When I use Adobe Bridge with the Wacom pen (Intuos 5) the first one or two clicks work but then the program stops responding to any pen clicks until I move the mouse or touch the touchpad, and then all the unresponsive clicks are played back at once. This problem first appeared with Bridge in CS5. I then upgraded to CS6 hoping it would go away, but it didn't. And now I've downloaded the new CC version of Bridge and it does the same thing. The pen works erratically in other Adobe programs as well but the malfunction is most obvious and happens consistently in Bridge. All Microsoft programs (Office 2010, Outlook, Internet Explorer, and Windows 8 itself) work fine with the Wacom pen.
    I've searched the Adobe and Wacom support forums and this problem does not appear to be affecting anyone else; although, I did find these two posts by people with similar problems:
    http://forums.adobe.com/message/5359741
    http://forums.adobe.com/message/5262754
    I've talked to Wacom tech support and tried all of the troubleshooting steps they could think of, including going back to earlier versions of the Intuos driver. They released a new Windows 8 driver yesterday (6.36) but it did not solve my problem.
    Since I use a Logitech mouse, I've tried updating, going back to earlier versions, and completely uninstalling the Logitech drivers but the problem did not go away. I've also uninstalled, cleaned settings, and reinstalled the Adobe apps several times with no change.
    This morning I tried disabling all non-Microsoft services and all non-essential startup programs on reboot but it made no difference.
    One clue I've noticed that might help Adobe engineers figure this mystery out is that when I click on the little triangles to expand the metadata in the panel (with my first pen click as that's the only one which registers) they will highlight but not rotate and the panel never expands (see pictures below). This is a unique behavior which I can not replicate with my mouse. If someone can identify what would make the triangles respond in this way we might be onto what message the program is getting when I click with the pen.
    After pen click on Camera Raw metadata triangle
    After mouse click on Camera Raw metadata triangle

    Curt Y wrote:
    Shut down all unnecessary programs running in the background.  Does Win 8 still use the ctrl alt delete for the Task Manager?
    I did as you suggested and tried shutting down other running programs with Task Manager (Ctrl-Shift-Tab in Windows 8) but nothing changed in Bridge's response to pen clicks.
    Then I used msconfig to turn off all non-essential system services and programs by doing what it calls a "Diagnostic Startup". Upon reboot only the minumal Windows drivers and services were running. Not even the Wacom driver was loaded, although the pen still worked using the Microsoft pen driver. I oppened Bridge, and guess what, exact same problem. One click and then the program locks up. And this is with absolutely nothing else running, no sound, no network, no other programs, and only the minimal set of Microsoft drivers.
    So I figure that the only thing that's left for me to investigate is the Microsoft "Pen and Touch" settings in Control Panel. I open that and see three pen actions: Single-tap, Double-tap and a thing called "Press and hold" which is turned off. I turn it on and test Bridge. Bingo! it works. Pen clicks now register normally.
    If I hold the pen down for a second, however, a right click is triggered. This is what "Press and hold" is supposed to do. But if I go back to Control Panel and turn "Press and hold" off, then Bridge locks up on normal pen clicks. It's like Bridge is interpreting every click as a click-and-hold but is unable to follow thorugh if the setting is turned off in the "Pen and Touch" control panel.
    I've found no other program on my computer that does this but Bridge, and all version of Bridge from CS5 through CC do the exact same thing. A very strange bug indeed! But now I have a solution: turn on "Press and hold" in the "Pen and Touch" applet in Windows 8 Control Panel.

  • Itunes freezes and stops responding after about 1 minute of being open

    This problem has been happening only recently. It just freezes, I logged onto my computer yesterday and it did the same thing. And it's doing it again today!! its really frustrating! I just re-installed itunes, the latest version for windows. My computers specs can handle it no problem..
    The song i am listening still plays, but just the program stops responding
    I only have like 103 songs.
    I got an ipod classic about a month ago and converted some videos for it, just letting you know incase that is the problem. but this never happened when i got my ipod or before.. only just now.
    so whats going on and how can i fix it?
    Message was edited by: homer1651

    The following Apple article may help:
    iTunes for Windows Vista: Troubleshooting unexpected quits, freezes, or launch issues
    http://docs.info.apple.com/article.html?artnum=305491

Maybe you are looking for

  • Sales Order Materials from Notification

    Hi All, Request your help. From Notification creation, after we create Tasks in All tasks tab, when we try to create the Sales Order, we have a requirement to pull the details from the Task long text using Read_text( here in the long text, we give th

  • Isqlplus is not working in linux (oracle linux) in graphical mode

    I have installed Oracle 9i on Oracle Enterprise Linux.sqlplus is working in text mode .But isqlplus is not running .After installation it was working fine but when i have restarted the system it stopped running.......... Firefox can't establish a con

  • RMBP Screen Blemish

    Hi Apple Community,      I have an annoying Screen blemish on white tited pixels on my retina display Macbook pro. Should I get this checked out???? Do I deserve a new one??? Inch from bottom bessel. 1.75inch from left bessel.

  • Issue with clearing the LOV field

    Hi, Could someone please help me with the code to reset/clear the value of an LOV field. I have a messageChoice and an LOV on the page. My requirement is that when a value is selected from the messageChoice, the value populated in the LOV field needs

  • Tried to delete Garage Band

    I deleted Garage Band, iMovie and iDVD. I lack a DVD burner, do not edit videos (my Camcorder is VHS-C and I lakck A capture card) so I think its pointless to have these apps. I deleted Garage Band and all the Garage Band folders on my HD. I figure i