One final thing I've noticed. When I moved one of my dll calls into a method it gave unhandled exceptions until I added the "win32" directive like this:
Local GetOSInfoProc:Byte Ptr ( typ:Byte Ptr ) "win32" = GetProcAddress ( DLL, "GetOSInfo" ) local result:String = String.FromCString ( GetOSInfoProc("Name".ToCString ( ) ) ) Print resultEverything is working properly again now.