Dim args() ' --> Should be args(0), but user made typo
'args(0) = "Hello world"
Call MyApp.SomeFunction("arg1", "arg2", (args))
This crashes my app with an FatalExecutionEngineError which I cannot
catch?
My App does something like:
Try
m_ScriptControl = New MSScriptControl.ScriptControl
m_ScriptControl.AddObject("MyApp", m_MyAppAccessObject, False)
m_ScriptControl.AddCode(theCode)
m_ScriptControl.Run("Main")
Catch ex As Exception
MessageBox(ex.Message)
End Try
The catch block is not entered, but the application terminates with
this message:
FatalExecutionEngineError was detected
Message: The runtime has encountered a fatal error. The address of the
error was at 0x7a038feb, on thread 0x124c. 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.
What goes? Is it not possible to catch these kind of exceptions?
TIA, Onno
Hope this helps...
Not really, not it crashes with:
"System.ExecutionEngineException was unhandled
Message: An unhandled exception of type
'System.ExecutionEngineException' occurred in Unknown Module."
There must be a way to catch this?