Hi.
I'm using a PCI-6518 IO card and have written an windows forms application in C# for the .NET Framework for use with the card. The application has worked fine in my tests at the office and also when I got it installed for a customer. I have now though received reports that the application sometimes stalls in its operation while it is waiting for the first input's state to go from 0 to 1. With the first input I mean the input that should first be changing its state in the operation that the application performs. I have been assured that the input that the application is waiting for has been put to 1 when this problem occures. The problem apparently goes away by rebooting the computer with the 6518 card - but it then reappears at some point again.
I'd like to get your feedback on some of the relative code parts - to insure that I'm not making some basic mistake. I am using change detection events in the C# code. Could it perhaps be a problem that surfaces after a while when some input buffer get filled or so?
The code that sets up the change detection event handling in the Form_Load event is included as an attachment file.
I have not been able to replicate this problem in the office. I will go to the customer on Thursday and then try to find out some more information about when the problem starts occuring. Anyway - if you have any ideas of where the fault might be then please tell me. I also use a separate NITask at certain points in the application to read the inputs and outputs and write to the outputs but I always dispose of the object and set it to null when operation in question if finished, so I don't see that interfering with the change detection event.
Thank you in advance.
Best Regards
CKa.