Event handler doesn't triggered when my unexpected window appears
Dear Community!
I'm struggling for a while with my issue, looking for some solution in former discussions.
In my test project sometimes a kind of unexpected window appears during test run.
In some cases it's easy to handle the situation by adding some extra lines to the scripts, which checks for the existance of that window. I mean, i have this window mapped in TesComplete Namemapping, and checking the .Exists() property, and do the necessary steps.
But it's not so effective, having this high amount of mostly unnecessary waste of time.
I tried to set up an event handler, followed the steps, described in manual for OnUnexpectedWindow event. I added a script, which should handle the event.
But, what i see, testcomplete never calls this event handler, only exits with error attached in the picture.
Is there any reason of this, or is there any additional parameter setting which i may have missed?
Thank you all in advance,
Benjamin