Once the code moves to the Show() method, it never gets past the "ScopePin.Write(GpioPinValue.High)" line in the TriggerScopePin(bool triggerOn) method. When I step through the code the error message that comes up is "System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' "
When I just run the code I get the error: "System.NullReferenceException: 'Object reference not set to an instance of an object.' "
I noticed the code never actually reaches the ScopeTriggerInit(6) so I tried forcing it to reach it, and when it was successful the code would then get stuck on the line: ScopePin = gpio.OpenPin(scopePin) in the ScopeTriggerInit(int scopePin) method with the error code: System.IO.FileLoadException: 'The process cannot access the file because it is being used by another process.
Once the code moves to the Show() method, it never gets past the "ScopePin.Write(GpioPinValue.High)" line in the TriggerScopePin(bool triggerOn) method. When I step through the code the error message that comes up is "System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' "
When I just run the code I get the error: "System.NullReferenceException: 'Object reference not set to an instance of an object.' "
I noticed the code never actually reaches the ScopeTriggerInit(6) so I tried forcing it to reach it, and when it was successful the code would then get stuck on the line: ScopePin = gpio.OpenPin(scopePin) in the ScopeTriggerInit(int scopePin) method with the error code: System.IO.FileLoadException: 'The process cannot access the file because it is being used by another process.