The following code is used to get the IL offset.
StackTrack st = new StackTrace(exception, true);
st.GetFrame(0).GetILOffset();
At runtime, the following function makes a remote call to get the ret
. Sometimes the data is null and the runtime throws an exception. When this exception is trapped by the above code, the IL offset is 0 after deployment but some valid number in dev.
void func()
{
....
ret.data[0] = "a";
....
}
Any thoughts?