Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Object reference not set to an instance of an object" #1

Closed
Jim999AGC opened this issue Jul 26, 2017 · 2 comments
Closed

Error "Object reference not set to an instance of an object" #1

Jim999AGC opened this issue Jul 26, 2017 · 2 comments

Comments

@Jim999AGC
Copy link

Jim999AGC commented Jul 26, 2017

Hi,

i have the program compiled with the VS 17 under Win7 and tried to run it on the PI with root.
root@pimusic: [...] /RaspiMusicBox-master/RaspiMusic/bin/Release# mono RaspiMusic.exe

I got the following error:

Starting...

Unhandled Exception:

System.NullReferenceException: Object reference not set to an instance of an object.
  at Raspberry.IO.GeneralPurpose.GpioConnection.Allocate (Raspberry.IO.GeneralPurpose.PinConfiguration configuration) [0x00073] in <c4694beda89543a583765d12b492fa36>:0 
  at Raspberry.IO.GeneralPurpose.GpioConnection.Open () [0x00036] in <c4694beda89543a583765d12b492fa36>:0 
  at Raspberry.IO.GeneralPurpose.GpioConnection..ctor (Raspberry.IO.GeneralPurpose.GpioConnectionSettings settings, System.Collections.Generic.IEnumerable`1[T] pins) [0x000f8] in <c4694beda89543a583765d12b492fa36>:0 
  at Raspberry.IO.GeneralPurpose.GpioConnection..ctor (Raspberry.IO.GeneralPurpose.PinConfiguration[] pins) [0x00000] in <c4694beda89543a583765d12b492fa36>:0 
  at RaspiMusic.Program.Main (System.String[] args) [0x0011a] in <774e5be7bcda41d78d9e5b5651299bc9>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object.
  at Raspberry.IO.GeneralPurpose.GpioConnection.Allocate (Raspberry.IO.GeneralPurpose.PinConfiguration configuration) [0x00073] in <c4694beda89543a583765d12b492fa36>:0 
  at Raspberry.IO.GeneralPurpose.GpioConnection.Open () [0x00036] in <c4694beda89543a583765d12b492fa36>:0 
  at Raspberry.IO.GeneralPurpose.GpioConnection..ctor (Raspberry.IO.GeneralPurpose.GpioConnectionSettings settings, System.Collections.Generic.IEnumerable`1[T] pins) [0x000f8] in <c4694beda89543a583765d12b492fa36>:0 
  at Raspberry.IO.GeneralPurpose.GpioConnection..ctor (Raspberry.IO.GeneralPurpose.PinConfiguration[] pins) [0x00000] in <c4694beda89543a583765d12b492fa36>:0 
  at RaspiMusic.Program.Main (System.String[] args) [0x0011a] in <774e5be7bcda41d78d9e5b5651299bc9>:0
@mwiedemeyer
Copy link
Owner

It seems to be an issue with Raspberry.IO.GeneralPurpose. It works with an older raspian version: http://downloads.raspberrypi.org/raspbian/images/raspbian-2016-05-31/
Please see here for details: raspberry-sharp/raspberry-sharp-io#86

@Jim999AGC
Copy link
Author

Thank you, problem solved and everything runs fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants