Frederik Vanderstraeten schreef:
Frederik Vanderstraeten schreef:
I just checked and that code works, but it doesn't work when it's in a function called from an external dll.

The situation is like this:

My XPCOM component connects Firefox with an external DLL.

That external DLL has an AttachCallback function, which accepts a function.
That function gets called when there is new information.
I want that function to call a Javascript function.

It works right when I call that function from code in my XPCOM component, but when the external DLL calls that code it freezes Firefox.

Basically, what I want to know: how can I make this work, or are there better ways to call Javascript from XPCOM?

I solved this by setting a boolean to true when the data has arrived, and make my function wait for this boolean to become true before returning the data to javascript.
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to