LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ProcessSystemEvents within timer callback

Hello all, long time no see,

I have some 'general protection faults' that sometimes happen when I call
ProcessSystemEvents() from within a timer callback, even if I disable the
timer before.
Maybe the reason has nothing to do with the timer, but are there any
limitations to what you can do in a standard UIR timer callback ?

Thanks.
--
Guillaume Dargaud
http://www.gdargaud.net/

0 Kudos
Message 1 of 3
(3,022 Views)

No, there shouldn't be any restrictions on using ProcessSystemEvents from within a timer callback. Just be aware that timer callbacks are not reentrant, therefore the ProcessSystemEvents call will not result in a nested invocation of a callback for that timer.

 

Luis

0 Kudos
Message 2 of 3
(3,016 Views)
> No, there shouldn't be any restrictions on using ProcessSystemEvents
> from within a timer callback. Just be aware that timer callbacks are not
> reentrant, therefore the ProcessSystemEvents call will not result in a
> nested invocation of a callback for that timer.

Thanks Luis.
It's OK about the non-reentrancy, I was disabling it before calling
ProcessSystemEvent anyway.
There must be some other cause for my problem, like a pointer of loose
morality somewhere.
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 3 of 3
(3,001 Views)