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

Rare crash when unchecking/checking winpcap #54

Open
noita-player opened this issue May 9, 2022 · 0 comments
Open

Rare crash when unchecking/checking winpcap #54

noita-player opened this issue May 9, 2022 · 0 comments

Comments

@noita-player
Copy link
Contributor

Switching between Machina and SharpPCAP calls .Stop() on Machina's TCPNetworkListener, below:

https://github.com/ravahn/machina/blob/master/Machina/TCPNetworkMonitor.cs#L107

Infrequently, the .wait(100) fails and they don't kill their task. Eventually, you get a crash when they attempt to call the OnDataReceived callback that is no longer there.

Maybe we can work around this without fixing Machina? Need to investigate calling .Stop(), replacing the OnDataReceived delegate, and only disposing it immediately before creating a new one.

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

1 participant