Forum Discussion

schwarz's avatar
schwarz
Occasional Contributor
9 years ago

Handle application freeze

Hi all.

 

I wonder if there is a possibility to control what happens if TestComplete encounters an application freeze (set at project options > Freeze Diagnostics). TC detects a freeze properly, but then terminates the application automatically. How can I interfere before the app is terminated ? A timeout event is not triggered when an app freezes.

 

Best regards... Jens

 

2 Replies

  • NisHera's avatar
    NisHera
    Valued Contributor

    You may handle that threough onLogError.

    in application freezes it post error message to log

    you may write event hanldler onlogg error if error = "....freeez..." do what you like

     

  • schwarz's avatar
    schwarz
    Occasional Contributor

    When the OnLogError event is fired, the app already has been terminated automatically, so this is too late. I need to take an action before the app is closed.