All,
I need a good working example of a bi-directional plugin. I have
ready many posts and have gotten pretty far, but still nothing. I
have defined my idl as the following:
#include "nsISupports.idl"
interface nsIJSObject;
[scriptable, uuid(bef031c8-1453-48a1-9b4f-b75696834e39)]
interface nsISimpleJSO : nsISupports {
void handleUtterance(in string utterance);
};
-----------------------------------------------------------------
My javascript object is defined as the following inside the test.html
page:
var jsObjectWrapper = {
handleUtterance : function(utterance) { alert ("CALLED!"); }
};
------------------------------------------------------------------
Now, this may be my problem. I have a thread that executes a
function. That function will call back into JavaScript to the
function handleUtterance. The browser seg faults in these two
instances:
1. I try to obtain the javascript object from nsScriptablePeer class
from inside the thread.
2. When I try to call (directly on the javascript object itself) from
within the thread.
I DO NEED the thread to make my plugin work, so the question is what
am I doing wrong for the bi-directional, and is the thread to blame?
I am crossing my fingers that it is not.
Any help will be GREATLY appreciated as soon as possible.
Bill
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom