Object Spy locks on application crash?
Currently working with an application which is c# .NET at it's core. And it spawns Delphi modules.
I'm trying to write a crash handler for it. (It does crash during tests sometimes .... in various different ways)
I've hit a problem. When a sub-process crashes, the .NET part of the application throws a crash message. This first part is no problem. I map all the parts of the dialog box it generates. Capture all the error text and click the button to close it. (OK being the only button)
This is where the problem starts.
When this Dialog closes, it throws a second message box. Once this one is on screen, TestComplete becomes totally unresponsive and only comes back to life once this Dialog is closed (manually). Using CTRL+SHIFT+A I did manage to capture one button. But as soon as it captures that, it was completely unresponsive again.
As you can imagine, that makes doing anything with this Dialog box kind of tricky.
This is the name locator I did manage to capture:
Sys["Process"]("WerFault")["Dialog"]("<MY_APPLICATION>")["Window"]("DirectUIHWND", "", 1)["Window"]("CtrlNotifySink", "", 10)["Window"]("Button", "Close the program", 1)
(For the "Close the program" button)
Any ideas? If an application crash is going to cause the test kit to stop working, I may have a problem .....
(It is not a child object of the application I'm working on ...)