2001: Invalid Operand Type

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

2001: Invalid Operand Type

Post by weloveayaka »

Code: Select all

 [Obfuscation(Feature = "ultra", Exclude = false)]
    static void what()
    {
        
            try
            {
                
                
              

            string A = "";
            string B = "";

            switch (A.Length)
            {
                case 4:
                   
                    break;
                case 5:
                   
                    break;
                case 6:
                    if (A == "A")
                    {
                      
                    }
                    break;
                case 8:
                    {
                        char c = A[0];
                        if (c != '1')
                        {
                            if (c == '2')
                            {
                                if (A == "3")
                                {
                                
                                }
                            }
                        }
                        else if (A == "4")
                        {
                            var Z =  new Type[] { typeof(string) };
                        }
                        break;
                    }
               
            }
        


            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                throw;
            }
        }

I tried a lot to get this minimal code..
Could you please fix it ?
Admin
Site Admin
Posts: 2586
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: 2001: Invalid Operand Type

Post by Admin »

Fixed in the 2002 build.
orbita
Posts: 1
Joined: Sat Mar 16, 2024 8:07 pm

Re: 2001: Invalid Operand Type

Post by orbita »

I'am have same issue, can you send me 2002 build also?
hewenbiao7
Posts: 3
Joined: Thu Jul 06, 2023 1:29 am

Re: 2001: Invalid Operand Type

Post by hewenbiao7 »

I'am have same issue, can you send me 2002 build also?
Admin
Site Admin
Posts: 2586
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: 2001: Invalid Operand Type

Post by Admin »

hewenbiao7 wrote: Mon Mar 18, 2024 2:36 am I'am have same issue, can you send me 2002 build also?
Done.
hewenbiao7
Posts: 3
Joined: Thu Jul 06, 2023 1:29 am

Re: 2001: Invalid Operand Type

Post by hewenbiao7 »

I haven't received the 2003 version, please send it to my email
Admin
Site Admin
Posts: 2586
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: 2001: Invalid Operand Type

Post by Admin »

hewenbiao7 wrote: Wed Mar 20, 2024 2:24 am I haven't received the 2003 version, please send it to my email
Done.
Post Reply