what happen if i am doing something and some object, like an socket connection call an dataArrival event?
the app waits for the methode ends and call the event handler?
or it stops the methode and call the handler??
Thank you,
Guilherme Costa
Printable View
what happen if i am doing something and some object, like an socket connection call an dataArrival event?
the app waits for the methode ends and call the event handler?
or it stops the methode and call the handler??
Thank you,
Guilherme Costa
It will call the event but if you're running an sync proc like in sockets (unless you use async connections) your application will only be notified in the end. If you use multi threading or async connections it will be right in the moment you call the event