Hi All,
I'm using custom event in my program.
In the event handler there is a possibility of failure in which case I just return.
After that the sender shou follow different path than when the handler succeeds.
What the best way to check - set something in the event handler as I don't think I have access to the internal "processes" variable.
Or is there a better way?
Thank you.
Event handler failure.
Re: Event handler failure.
If you don't send the event from a secondary thread, you can use ProcessEvent() instead of PostEvent() or QueueEvent() and check the return value of that function. It returns true if the event was handled. But if you call event.Skip() in the event handler, it will return false.
Use the source, Luke!