Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
EventHandler possibly returns at first Console.WriteLine #51
While debugging an event handler I noticed that none of my code after the first Console.Writeline was executed.
Normally I wouldn't have any Console.WriteLine statements in an event handler but without a debugger my options are limited.
This was code that had previously been used on Windows 10 IoT Core but with Debug.Writeline rather than Console.WriteLine.
I'm seeing the same issue with Event Handlers in Meadow.Foundation samples. I'm using the SHT31 Nuget from Meadow.Foundation.Sensors.Atomespheric
'App.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_220.127.116.11__b77a5c561934e089\mscorlib.dll'.
When I download the binary in the output window
This is with the latest MeadowOS download files dated 24 Dec 2019 11:34:56 am which seems a bit odd
I have code in my [LoRa field gateway client] (https://github.com/KiwiBryn/FieldGateway.LoRa.MeadowClient) where I tried updating an LED's state after a call to Console.WriteLine in an event handler.
private void Rfm9XDevice_OnTransmit(object sender, Rfm9XDevice.OnDataTransmitedEventArgs e)
Register 0x41 - Value 0X00 - Bits 00000000
The LED flashes as expected so I think it be the first Console.WriteLine works then the following one(s) fail silently.