The following code throws an unhandled System.IO.FileLoadException with message "The process cannot access the file because it is being used by another process." when using the lightning library.The catch block is not entered.
// The code below should work the same with any provider, including Lightning and the default one.
I2cController controller = await I2cController.GetDefaultAsync();
// Ox40 was determined by looking at the datasheet for the Weather shield
try {
var sensor = controller.GetDevice(new I2cConnectionSettings(0x40));
var testSecondSensor = controller.GetDevice(new I2cConnectionSettings(0x44));
}
catch (Exception exc) {
string s = exc.Message;
}
Creating only one device works without any error. Platform is Raspberry Pi 2 Model B running Windows IoT 10.0.10586. The code runs flawlessly with the Inbox driver.
The following code throws an unhandled System.IO.FileLoadException with message "The process cannot access the file because it is being used by another process." when using the lightning library.The catch block is not entered.
Creating only one device works without any error. Platform is Raspberry Pi 2 Model B running Windows IoT 10.0.10586. The code runs flawlessly with the Inbox driver.