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

WebSocketClient.Connect fails with NullReferenceException #106

Open
gishu opened this issue Nov 13, 2014 · 2 comments
Open

WebSocketClient.Connect fails with NullReferenceException #106

gishu opened this issue Nov 13, 2014 · 2 comments

Comments

@gishu
Copy link

gishu commented Nov 13, 2014

Here's the stack trace

Alchemy.dll!Alchemy.WebSocketClient.SetupContext(Alchemy.Classes.Context context) Line 187  
Alchemy.dll!Alchemy.WebSocketClient.HandleClientThread() Line 94    C#
[External Code] 

_context.Connection.Connected - this property evaluation seems to be the problem.

The Server (also using the same Alchemy binary) works fine - validated that with a browser as client.
I built the source (commit# 42c00b6... Jack Lawson) on Win8 64bit.

Just a cursory look at the code - so I may be off here
In WebSocketClient#OnRunClient, I see a using block with _context. At the end of the block _context.Dispose is called which closes the TcpClient instance. The HandleClientThread then seems to be trying to use the closed object.

@KumarSunilV
Copy link

Hi,

I'm seeing the same too? Which is the stable version which can be used for testing?

Thanks,
Sunil

@steforster
Copy link

Since more than one year no update here!
You need to try another fork, e.g. https://github.com/steforster/Alchemy-Websockets.

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

3 participants