I havent been able to track down the reason but once in a while I get the:
A first chance exception of type 'System.ArgumentException' occurred in Gadgeteer.dll
Error invoking method "Gadgeteer.Modules.GHIElectronics.Button" (check arguments to Program.BeginInvoke are correct)
When I click a button, and I have seen in another device driver with same results. The code runs fine, it just annoys my eyes.
Any ideas?