Jump to content
Tuts 4 You

Stack depth differs depending on path


CodeExplorer

Recommended Posts

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
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...