I have attached a project of a test app that crashes in the latest version of VMProtect, this project used to run perfectly fine with version v3.5.1.1387.
It seems like when Import Protection is turned on the application crashes when it tries to access the static string “SymLink”, and if you comment out line# 11 in Test.cs it will run perfectly fine. VMPTest.7z (451 KB)
Kindly advise on a fix.
With the latest build 1531 it looks like it doesn’t even reach the first Console.WriteLine() anymore, seems to crash almost immediately for the same VMPTest project that I attached previously. (I am testing in Release build)
Build 1532 seems to fix the original issue and now appears to run my test project completely fine, but the new issue that was introduced in Build 1531 (Runtime error at CompileToVM: add) when trying to compile my other project in VMProtect still appears to occur. I’m not sure how easy it is for you to isolate the changes between Build 1530 and 1531to see what causes this issue.
I’m not sure if I see a “Lock To Serial Number” feature, but I have the “Lock to HWID” turned off.
I do check for a serial number programmatically, but I don’t think this code should break the ability for VMProtect to compile, not sure..
Example Code:
SerialState st = SDK.SetSerialNumber(File.ReadAllText("serialkey.dat"));
if (st == SerialState.Success)
{
SerialState st2 = VMProtect.SDK.GetSerialNumberState();
if (st2 == SerialState.Success)
{
VMProtect.SerialNumberData sd;
if (VMProtect.SDK.GetSerialNumberData(out sd) && sd.State == SerialState.Success)
{
byte[] userData = sd.UserData;
if (userData != null)
{
//stuff here
}
}
}
}