Skip to content

null value on ScopePin #8

Description

@d4nc3rmon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions