Calling ExternalObject in OSX gives me IOError: I/O Error.
Hello,
I have a script as a complement of a plugin, and I use the ExternalObject class in javascript to call an internal function in my plugin.
Everything works as expected in windows, but I'm getting an IOError in OSX. I know the path for the lib is correct, if it wasn't, the error would be different.
I think it has nothing to do with the actual exported function either, as the script never gets to the point of calling it. Either way, I checked the library exports, and my function is "visible" from the outside.
this is what I have:
| try | |||
| { | |||
| var myLib = new ExternalObject("lib:" + pluginPath + libFilename); | |||
| myLib.execute("requeststatus"); | |||
| myLib.unload(); | |||
| } | |||
| catch(e) | |||
| { | |||
| alert(e); | |||
| } | |||
The script halts when the first line is executed, It never reaches the second line with the actual execute. I also copied the library to another path to avoid problems with permissions, but no change in the result.
Any help would be appreciated.