{"action":"created","issue":{"url":"https://api.github.com/repos/Lachee/discord-rpc-csharp/issues/22","repository_url":"https://api.github.com/repos/Lachee/discord-rpc-csharp","labels_url":"https://api.github.com/repos/Lachee/discord-rpc-csharp/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/Lachee/discord-rpc-csharp/issues/22/comments","events_url":"https://api.github.com/repos/Lachee/discord-rpc-csharp/issues/22/events","html_url":"https://github.com/Lachee/discord-rpc-csharp/issues/22","id":330435371,"node_id":"MDU6SXNzdWUzMzA0MzUzNzE=","number":22,"title":"System.NullReferenceException - _stream was null","user":{"login":"MorGuux","id":18599017,"node_id":"MDQ6VXNlcjE4NTk5MDE3","avatar_url":"https://avatars3.githubusercontent.com/u/18599017?v=4","gravatar_id":"","url":"https://api.github.com/users/MorGuux","html_url":"https://github.com/MorGuux","followers_url":"https://api.github.com/users/MorGuux/followers","following_url":"https://api.github.com/users/MorGuux/following{/other_user}","gists_url":"https://api.github.com/users/MorGuux/gists{/gist_id}","starred_url":"https://api.github.com/users/MorGuux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorGuux/subscriptions","organizations_url":"https://api.github.com/users/MorGuux/orgs","repos_url":"https://api.github.com/users/MorGuux/repos","events_url":"https://api.github.com/users/MorGuux/events{/privacy}","received_events_url":"https://api.github.com/users/MorGuux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-07T21:04:48Z","updated_at":"2018-06-08T14:59:53Z","closed_at":null,"author_association":"NONE","body":"Hi, i've recently been looking at some libraries to add Discord Rich Presence support for C#, and I came across your library as the most complete one. I've downloaded your master branch and built the .dll, copied into the program of choice (I'm trying to make a plugin for a sim racing program called SimHub), referenced in VS. \r\n\r\nI've looked at the DiscordRPC.Example code and copied what's relevant into my .CS file. Now when I run the code, it opens up the program, then shortly after, breaks with an unhandled exception \r\n\r\n`System.NullReferenceException: 'Object reference not set to an instance of an object.'`\r\n\r\n`_stream was null.`\r\n\r\nI have re-written everything a few times, but this error is one I cannot get past.\r\n\r\nSystem.NullReferenceException\r\n  HResult=0x80004003\r\n  Message=Object reference not set to an instance of an object.\r\n  Source=Discord RPC\r\n  StackTrace:\r\n   at DiscordRPC.IO.ManagedNamedPipeClient.Close() in C:\\Users\\morga\\Downloads\\discord-rpc-csharp-master\\Discord RPC\\IO\\ManagedNamedPipeClient.cs:line 218\r\n   at DiscordRPC.IO.ManagedNamedPipeClient.Dispose() in C:\\Users\\morga\\Downloads\\discord-rpc-csharp-master\\Discord RPC\\IO\\ManagedNamedPipeClient.cs:line 233\r\n   at DiscordRPC.RPC.RpcConnection.MainLoop() in C:\\Users\\morga\\Downloads\\discord-rpc-csharp-master\\Discord RPC\\RPC\\RpcConnection.cs:line 369\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()\r\n\r\nAny help would be greatly appreciated.\r\n\r\nCheers,\r\nMorgan"},"comment":{"url":"https://api.github.com/repos/Lachee/discord-rpc-csharp/issues/comments/395788164","html_url":"https://github.com/Lachee/discord-rpc-csharp/issues/22#issuecomment-395788164","issue_url":"https://api.github.com/repos/Lachee/discord-rpc-csharp/issues/22","id":395788164,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTc4ODE2NA==","user":{"login":"MorGuux","id":18599017,"node_id":"MDQ6VXNlcjE4NTk5MDE3","avatar_url":"https://avatars3.githubusercontent.com/u/18599017?v=4","gravatar_id":"","url":"https://api.github.com/users/MorGuux","html_url":"https://github.com/MorGuux","followers_url":"https://api.github.com/users/MorGuux/followers","following_url":"https://api.github.com/users/MorGuux/following{/other_user}","gists_url":"https://api.github.com/users/MorGuux/gists{/gist_id}","starred_url":"https://api.github.com/users/MorGuux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorGuux/subscriptions","organizations_url":"https://api.github.com/users/MorGuux/orgs","repos_url":"https://api.github.com/users/MorGuux/repos","events_url":"https://api.github.com/users/MorGuux/events{/privacy}","received_events_url":"https://api.github.com/users/MorGuux/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T14:59:53Z","updated_at":"2018-06-08T14:59:53Z","author_association":"NONE","body":"Just reinstalled everything and basically started from scratch, just to be sure. With the Logging.FileLogger, I have to change it to DiscordRPC.Logging.FileLogger, in order for it to find it. Ran the program and nothing happens. Looked in the newly created log file and this is what it says.\r\n\r\n\r\nINFO: Attempting a new coonnection\r\n\r\nINFO: Initiated shutdown procedure\r\n\r\nINFO: Initializing Thread. Creating pipe object.\r\n\r\nINFO: Left Main Loop\r\n\r\nWARN: Stream was closed, but no stream was available to begin with!\r\n\r\nINFO: Thread Terminated"}}
{"actor":{"display_login":"MorGuux"}}