This is a really strange error I have been getting sometimes with SOME libraries (be it included in the framework or not).
For example, this time I got it with LuaInterface doing this:
//' s = string to existing file path
lua.DoFile(s)
Dim func = lua.GetFunction("ohai_regex()")
Dim ret = func.Call() 'doesnt do anything
//' file s contains function ohai()
MessageBox.Show("Geronimo!") 'NEVER gets reached
I’d expect the func.Call() to return an exception if something is up, or do anything to error out, but here it just murders my method which returns instantly! The same stuff here is also in a loop, which doesn’t get any more iterations, it just stops executing this function and continues running the program.
This has been occuring to me a few times now. I don’t remember the other times though.
(Maybe the LuaInterface code I’m using up here is wrong, but that’s not really my point…)
I see two possible reasons: