Forum Discussion
Was this issue ever resolved? I just ran into this for the first time. I added an event but all it does is send a picture to the log. Is it because I have options checked in the project options as well to close window on unexpected window? Does anyone know if I have to uncheck those and close the window myself if I use a script event? Thanks.
- tristaanogre7 years agoEsteemed Contributor
Basically, the way this works is that the options in Project.Properties for UnexpectedWindow are executed first in order and then, if they fail, it goes to the event handler. So, if you want ONLY your event handler to happen, uncheck all those options.
As for the original problem of "recursive call", basically what is happening there is that, within the OnUnexpectedWindow event handler, they are running code that is, again, triggering the Unexpected Window event which throws you into a loop. It's the same thing, basically, as calling "Log.Error" within the "OnLogError" event handler.
Related Content
- 2 years ago
- 3 years ago
Recent Discussions
- 20 hours ago