VEthernet icon indicating copy to clipboard operation
VEthernet copied to clipboard

How to fix error has stopped working

Open xuan2261 opened this issue 2 years ago • 5 comments

image How can I fix the error that when running for a while, tun2socks suddenly has stopped working?

xuan2261 avatar Apr 24 '22 20:04 xuan2261

image

xuan2261 avatar Apr 24 '22 21:04 xuan2261

Solutions:

  1. Only x86 compiles and runs programs
  2. Do not compile Release version, Only compile Debug version
  3. Do not use .Net Framework System.Net.Sockets.Socket to recv/send async UDP/IP data.

This is due to a specific Microsoft .NET implementation BUG within.NET, and we tried to fix it with ASM (x86/ X64 CPU IL OpCode), but it didn't work very well.

However, as long as you do not compile the Debug version of.net optimized code, this null pointer error does not occur.

liulilittle avatar May 07 '22 10:05 liulilittle

The latest version, available today, optimizes compilation and fixes bugs caused by NULL pointer (Microsoft.net Framework) internal code implementations.

liulilittle avatar May 07 '22 20:05 liulilittle

image

Pull to the latest code to solve this problem. commit v:17.

liulilittle avatar May 08 '22 06:05 liulilittle

image

Pull to the latest code to solve this problem. commit v:17.

Thank you. I will try it.

xuan2261 avatar May 08 '22 08:05 xuan2261