YAY! It mostly works! Thanks!!
I'm using the following code (inside a button on a simple web form app)
| Code: |
List<PicoLCD_4x20> picos = new List<PicoLCD_4x20>();
picos.AddRange(PicoLCD_4x20.EnumeratePicoLCDDevices());
foreach (PicoLCD_4x20 pico in picos)
{
pico.Cache = false;
pico.set_Text(0, "Pete");
pico.set_Text(1, DateTime.Now.ToShortTimeString());
}
|
And that works perfectly! When I close the form, something, somewhere is throwing a null ref exception thought...
I wasn't able to debug into it, but here's the details:
| Code: |
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="System.Management"
StackTrace:
at System.Management.IWbemServices.CancelAsyncCall_(IWbemObjectSink pSink)
at System.Management.SinkForEventQuery.Cancel()
at System.Management.ManagementEventWatcher.Stop()
at System.Management.ManagementEventWatcher.Finalize()
InnerException:
|
Thanks!
PEte