Multi threaded app crash

Post here messages if you have any problems with working of Enigma Protector
Post Reply
VkljvZFlHa
Posts: 7
Joined: Sun Mar 15, 2020 11:10 pm

Multi threaded app crash

Post by VkljvZFlHa » 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?
scr1.PNG
scr1.PNG (17.03 KiB) Viewed 2704 times

Enigma
Site Admin
Posts: 2557
Joined: Wed Aug 20, 2008 2:24 pm

Re: Multi threaded app crash

Post by Enigma » Mon Mar 16, 2020 12:26 pm

Hi, sorry, do you mean that it crashed when protected and you use Virtual Box option?
Or it crash when just protected, even without Virtual Box?

VkljvZFlHa
Posts: 7
Joined: Sun Mar 15, 2020 11:10 pm

Re: Multi threaded app crash

Post by VkljvZFlHa » Mon Mar 16, 2020 6:18 pm

I added in Virtualbox onlt my SQL.dll where I need hide the sql conn logins.
All other dll's are outside .exe file.
SCREEN: https://postimg.cc/ygTNVbMK

Right after I hit START it crash and it shows this:
Faulting application name: Bot.exe, version: 2.0.5.0, time stamp: 0xd37648a0
Faulting module name: clr.dll, version: 4.8.4150.0, time stamp: 0x5e176ddd
Exception code: 0xc0000005
Fault offset: 0x004d4c2a
Faulting process id: 0x7ac
Faulting application start time: 0x01d5fbb4383a4b33
Faulting application path: C:\Users\unkn0wn\Documents\DEVELOPMENT\ENIGMA FOLDER\Bot\Bot\Protected\Bot.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 41b31162-8c23-412c-94c4-893add60540b
Faulting package full name:
Faulting package-relative application ID:

Enigma
Site Admin
Posts: 2557
Joined: Wed Aug 20, 2008 2:24 pm

Re: Multi threaded app crash

Post by Enigma » Mon Mar 16, 2020 6:35 pm

Please try this version, let me know if it will work well: https://enigmaprotector.com/assets/file ... 1_demo.exe

VkljvZFlHa
Posts: 7
Joined: Sun Mar 15, 2020 11:10 pm

Re: Multi threaded app crash

Post by VkljvZFlHa » Mon Mar 16, 2020 6:47 pm

ok i go to test thx
If it help I have complete log called "Report.wer" if it helps i can send

VkljvZFlHa
Posts: 7
Joined: Sun Mar 15, 2020 11:10 pm

Re: Multi threaded app crash

Post by VkljvZFlHa » Mon Mar 16, 2020 6:51 pm

Should I put ALL .dll's in VirtualBOX ?

VkljvZFlHa
Posts: 7
Joined: Sun Mar 15, 2020 11:10 pm

Re: Multi threaded app crash

Post by VkljvZFlHa » Mon Mar 16, 2020 6:59 pm

Same error:

Faulting application name: Bot.exe, version: 2.0.7.0, time stamp: 0xa9a051bc
Faulting module name: clr.dll, version: 4.8.4150.0, time stamp: 0x5e176ddd
Exception code: 0xc0000005
Fault offset: 0x004d4c2a
Faulting process id: 0x1d80
Faulting application start time: 0x01d5fbc434c3c523
Faulting application path: C:\Users\unkn0wn\Documents\DEVELOPMENT\ENIGMA FOLDER\Bot\Protected\Bot.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 0b151a83-8f0c-42f9-95a6-e5a1a98e89dc
Faulting package full name:
Faulting package-relative application ID:

VkljvZFlHa
Posts: 7
Joined: Sun Mar 15, 2020 11:10 pm

Re: Multi threaded app crash

Post by VkljvZFlHa » Mon Mar 16, 2020 9:00 pm

I copied all dll's from visual studio as I thought it is missing reference in release protected app.
But it crash again this time with new eror:
Faulting application name: Bot.exe, version: 2.0.8.0, time stamp: 0xbc6c4fd6
Faulting module name: KERNELBASE.dll, version: 10.0.18362.145, time stamp: 0xf5733ace
Exception code: 0x0eedfade
Fault offset: 0x001133d2
Faulting process id: 0x29c0
Faulting application start time: 0x01d5fbd350b8caad
Faulting application path: C:\Users\unkn0wn\Documents\DEVELOPMENT\ENIGMA FOLDER\Protected\Bot.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: e7523d8f-7071-46f4-b707-016a076b70a4
Faulting package full name:
Faulting package-relative application ID:


:(

Enigma
Site Admin
Posts: 2557
Joined: Wed Aug 20, 2008 2:24 pm

Re: Multi threaded app crash

Post by Enigma » Tue Mar 17, 2020 12:42 pm

Frustrating, please send us non protected files at support@enigmaprotector.com, explain how to use it so we can reproduce the problem on local computer and we will try to help.

VkljvZFlHa
Posts: 7
Joined: Sun Mar 15, 2020 11:10 pm

Re: Multi threaded app crash

Post by VkljvZFlHa » Tue Mar 17, 2020 7:52 pm

Non protected file I can not send It is no mine app I was hired to solve this maybe you can teamviewer remote and see.
So far someone from microsoft sent me this answer:
=>
If you google for the error type: System.AccessViolationException you will normally get a good description of why it's happened: AccessViolationException Class (System) | Microsoft Docs[^]
So something in your Live method is trying to use memory it hasn't got.

We can't help you here: We have no idea what you code should do, much less how it does it! If this has suddenly started to occur when you updated Leaf, then go back to them and start describing the problem there - see if they have met it before, or can give you pointers on where to look or what you have done wrong.
<=

So i dont know why they said about memory if in visual studio it not throw any error ONLY after protected.
Does it help?

Post Reply