Jump to content


- - - - -

Stack depth differs depending on path

what caused this error?

  • Please log in to reply
No replies to this topic

#1 CodeCracker

CodeCracker

    Retired from SnD

  • (Retired)
  • 1,484 posts
  • Gender:Male
  • Location:Romania
  • Interests:girls, RE/coding

Posted 11 February 2012 - 10:39 AM

I've just added a branch at IL_0012
and after that I've get an error while checking with PEVERIFY:
"Stack depth differs depending on path."

  IL_0000:  /* 02   |   */ ldarg.0
  IL_0001:  /* 72   | (70)000001    */ ldstr   ""
  IL_0006:  /* 7D   | (04)000001    */ stfld   string FrameworkChanger.MainForm::DirectoryName
  IL_000b:  /* 02   |   */ ldarg.0
  IL_000c:  /* 1E   |   */ ldc.i4.8
  IL_000d:  /* 8D   | (01)000007    */ newarr [mscorlib]System.Byte
  IL_0012:  /* 2B   | 00    */ br.s    IL_0014
  IL_0014:  /* 25   |   */ dup
  IL_0015:  /* D0   | (04)0000EF    */ ldtoken field int64 '<PrivateImplementationDetails>{5DEC3CB6-34B8-4B94-A3CD-C3D62796EF07}'::'$$method0x6000001-1'
  IL_001a:  /* 28   | (0A)000001    */ call    void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array,
valuetype [mscorlib]System.RuntimeFieldHandle)
  IL_001f:  /* 7D   | (04)000002    */ stfld   uint8[] FrameworkChanger.MainForm::token1

The error also come if I place the branch after IL_0014;
in other place there is no error!
I need more information about this error, I couldn't find it over .NET.

Edited by CodeCracker, 11 February 2012 - 10:40 AM.

The source of evil is the arrogance!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users