LostArkLogger icon indicating copy to clipboard operation
LostArkLogger copied to clipboard

Rare crash when unchecking/checking winpcap

Open noita-player opened this issue 2 years ago • 0 comments

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.

noita-player avatar May 09 '22 05:05 noita-player