We have 4 applications running on a server (Win2003). A couple of them are periodically crashing with a messagebox:
Microsoft Visual C++ Runtime Library
---------------------------------
Runtime Error!
Program C:\XXX\xxx.exe
This application has request the Runtime to terminate in an unusual way. Please contact the application's support team for more information.
[OK]
I thought that the HM process or WMI monitor would tell me when the app crashes (and I see the messagebox), but it does not, as the application is still running until I click on the "OK" button. In other words, the process count (for both the process test and the WMI query test) shows a number one, so HM thinks everything is fine. Are there any other ways to monitor the crash (until the programmers who wrote the app fix our issue?
I also looked in the event log for anything to key off there, but there was nothing in the system and application logs in relation to this error message.
Thanks in advance for any ideas,
Mike
Monitor process problem
Well, the best way to check if application works correctly is to check its results. E.g. if application should generate some reports or log files on regular basis then its good idea to check these files (e.g. using File/Folder Availability test method); if application should process some TCP connections, its good idea to check how it works using TCP test method and so on.
If this is not possible (application does not provide such "open" interface) then you may try AppStatus utility. This utility located in HostMonitor folder, \Utils\appstatus\ subfolder.
AppStatus utility sends a message to each window of the specified process and returns “Bad” status and ExitCode 2 when the application does not respond.
Short manual for this utility located in the same folder.
Regards
Alex
If this is not possible (application does not provide such "open" interface) then you may try AppStatus utility. This utility located in HostMonitor folder, \Utils\appstatus\ subfolder.
AppStatus utility sends a message to each window of the specified process and returns “Bad” status and ExitCode 2 when the application does not respond.
Short manual for this utility located in the same folder.
Regards
Alex
Alas, appstatus does not help things either... 
When I got the error message, I even went and tested out the script in Script Manager:
[1:40:26 PM] Agent: MyRemoteAgent is going to execute "order processing status" script ...
[1:40:36 PM] Script executed, correct result received:
----------
- Status: Ok
- Reply: 1
----------
I did this when the .exe had "crashed" and the "Microsoft Visual C++ Runtime Library" message box popped up.
Anything else to check? I ran process explorer and "targeted" the error message box and it references the crashing .exe (I was hoping it was spawning off some process that I could watch for).
thanks,
Mike

When I got the error message, I even went and tested out the script in Script Manager:
[1:40:26 PM] Agent: MyRemoteAgent is going to execute "order processing status" script ...
[1:40:36 PM] Script executed, correct result received:
----------
- Status: Ok
- Reply: 1
----------
I did this when the .exe had "crashed" and the "Microsoft Visual C++ Runtime Library" message box popped up.
Anything else to check? I ran process explorer and "targeted" the error message box and it references the crashing .exe (I was hoping it was spawning off some process that I could watch for).
thanks,
Mike
This means application still works somehow and processes windows messages.[1:40:36 PM] Script executed, correct result received:
- Status: Ok
- Reply: 1
Don't have any ideaAnything else to check?

You may ask developers of that application. BTW: If they cannot find and fix error, probably they can try to intercept exceptions and write some log. In such case HostMonitor will be able to check log and start alerts.
Regards
Alex