Multi threaded app crash
Posted: Mon Mar 16, 2020 1:06 am
Hi,
my multithreaded proxy app crash when released; if under visual studio the code runs normal.
I do not added .dll to virtualbox btw.
Please check my screen attached.
Here is error log:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at Leaf.xNet.Socks4ProxyClient.HandleCommandError(Byte)
at Leaf.xNet.Socks4ProxyClient.SendCommand(System.Net.Sockets.NetworkStream, Byte, System.String, Int32)
at Leaf.xNet.Socks4ProxyClient.CreateConnection(System.String, Int32, System.Net.Sockets.TcpClient)
at Leaf.xNet.HttpRequest.CreateTcpConnection(System.String, Int32)
at Leaf.xNet.HttpRequest.CreateConnection(System.Uri)
at Leaf.xNet.HttpRequest.TryCreateConnectionOrUseExisting(System.Uri, System.Uri)
at Leaf.xNet.HttpRequest.Request(Leaf.xNet.HttpMethod, System.Uri, Leaf.xNet.HttpContent)
at Leaf.xNet.HttpRequest.Raw(Leaf.xNet.HttpMethod, System.Uri, Leaf.xNet.HttpContent)
at Leaf.xNet.HttpRequest.Raw(Leaf.xNet.HttpMethod, System.String, Leaf.xNet.HttpContent)
at Leaf.xNet.HttpRequest.Get(System.String, Leaf.xNet.RequestParams)
at App.Form1.Live()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
Possible this?
my multithreaded proxy app crash when released; if under visual studio the code runs normal.
I do not added .dll to virtualbox btw.
Please check my screen attached.
Here is error log:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at Leaf.xNet.Socks4ProxyClient.HandleCommandError(Byte)
at Leaf.xNet.Socks4ProxyClient.SendCommand(System.Net.Sockets.NetworkStream, Byte, System.String, Int32)
at Leaf.xNet.Socks4ProxyClient.CreateConnection(System.String, Int32, System.Net.Sockets.TcpClient)
at Leaf.xNet.HttpRequest.CreateTcpConnection(System.String, Int32)
at Leaf.xNet.HttpRequest.CreateConnection(System.Uri)
at Leaf.xNet.HttpRequest.TryCreateConnectionOrUseExisting(System.Uri, System.Uri)
at Leaf.xNet.HttpRequest.Request(Leaf.xNet.HttpMethod, System.Uri, Leaf.xNet.HttpContent)
at Leaf.xNet.HttpRequest.Raw(Leaf.xNet.HttpMethod, System.Uri, Leaf.xNet.HttpContent)
at Leaf.xNet.HttpRequest.Raw(Leaf.xNet.HttpMethod, System.String, Leaf.xNet.HttpContent)
at Leaf.xNet.HttpRequest.Get(System.String, Leaf.xNet.RequestParams)
at App.Form1.Live()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
Possible this?