The runtime has encountered a fatal error. The address of the error was at 0x62e08c8f, on thread 0x3368. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.
Sometimes this happens in a way that makes it impossible to tell what line it failed on.
and access the ID as dv.&id instead of dv.&id as string. Note that I’m not saying dv.&id should work; but it should point out my mistake in an more informative way. I’ve actually seen it crash the compiler, but the current version at least does not do that.
dv:=fbClient.Get("/me?fields=id,name,email,first_name,last_name,picture") as dynamic;
is the only thing I’m leaving out and I don’t know how the dynamic is being constructed, the data I gave you is what the debugger says the string value of the dynamic variable is.
but in my experience, if you have a dynamic, and you reference a field without typecasting it, you get the error.
I’m sorry to be dense, but i need to see code i can actually compile. how does the JSON get converted into a dynamic? Can you give me an actual self-contained example that reproduces the issue?
right but can you give us the code that shows that FatalExecutionEngine error? It’s going to depend on the exact code for us to be able to reproduce this issue.
I will try to recreate it. What should the behavior be? Should “I := dynamicRecord.&ID” work if I is and integer or a string, or would it have to be “I := dynamicRecord.&ID as integer” (or string)?