D
danger
I everybody, first of all sorry for my poor english. I have a problem
with an event that is generated more times very quickly so the
function subscribed doesn't finish his work. What can i do in order to
complete the work of the function before a new event is generated?
I have choosen two options:
1) Put the body of function inside a lock statement (i think is a
really bad idea)
2) Put every data generated with the event inside a list and a
separated thread manage the various operations of the data of that
list.
Does someone have better solutions?
Thanks you
Federico
with an event that is generated more times very quickly so the
function subscribed doesn't finish his work. What can i do in order to
complete the work of the function before a new event is generated?
I have choosen two options:
1) Put the body of function inside a lock statement (i think is a
really bad idea)
2) Put every data generated with the event inside a list and a
separated thread manage the various operations of the data of that
list.
Does someone have better solutions?
Thanks you
Federico