version 2023/2025/2040: multiple async operation can't complete

Issues related to VMProtect
Post Reply
weloveayaka
Posts: 58
Joined: Wed Jul 05, 2023 6:21 am

version 2023/2025/2040: multiple async operation can't complete

Post by weloveayaka »

Hello Admin,

Thank you very much for always promptly responding to and fixing software issues.

Here is the problem:

Code: Select all

internal class Program
{
  
    static void Main(string[] args)
    {
        Console.WriteLine("async start");
        T().Wait();
        Console.WriteLine("Finished");   <------------------ Can't run into here
        Console.ReadLine();
    }

    [Obfuscation(Exclude = false,Feature = "ultra")]
    static async Task T()
    {
        var a = new AsyncClass();
        await a.DoAsyncWork();
    }


    [Obfuscation(Feature = "ultra", Exclude = false)]
    public class AsyncClass
    {
        public async System.Threading.Tasks.Task DoAsyncWork()
        {
            await System.Threading.Tasks.Task.Delay(1000);
            Console.WriteLine("Async work completed");
        }
    }
Only release configuration have this problem, debug configuration runs well.
vmp 2023 with default settings and .net framework 4.8.1
Last edited by weloveayaka on Mon Apr 08, 2024 3:10 am, edited 1 time in total.
weloveayaka
Posts: 58
Joined: Wed Jul 05, 2023 6:21 am

Re: version 2023/2025: multiple async operation can't complete

Post by weloveayaka »

2025 also has this problem
Post Reply