LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

repeatly calling of InstallComCallback

I use in my CVI-application the function "InstallComCallback", but in my way it doesn't work
properly. After a running time of more than half an our, the system runs slower and slower.
The OS (Windows ME) comes in a instable state and I can only switch off my computer.

The kind I use this function is not described but in my opinion it's useful. I call this
function not only one time, but repeatly for change of the significant character in the
"EventCharacter"-parameter to specifies an other character/byte value that will trigger
the LWRS_FLAG event.

It seems the problem is, each time the "InstallComCallback" function is called, a new handle
of event is created without closing the older one, so the table of events in th
e OS flows over
or grow out of limits.

Even inactivate the callback or close the com-port don't solve the problem.

Who can give me an advice how I can kill such a handle or prevent to create such handles?

Please forgive me my poor english. I hope any one understands my strange kind of writing and
knows a remedy.

Thanks forward

Matthias
0 Kudos
Message 1 of 2
(2,850 Views)
Hi this is what I found in the function help.
To disable callbacks for a port, pass 0 for the eventMask and/or callbackFunction parameters.
I hope this helps.
0 Kudos
Message 2 of 2
(2,850 Views)