Iam new to JUCE and iam using version 1.5. Iam trying to build a browser plugin for IE and FF. I ran into the following problem in IE7.
- When IE 7 is opened and the main html page is opened the object tag loads my plugin. i have a non-gui thread in my plugin that is using the following
MessageManager::callFunctionOnMessageThread method to invoke functions on the main browser thread. this works fine for one tab
- When i open a new tab in IE7 and open my html page a second instance of my plugin gets created as expected. but when i invoke the MessageManager::callFunctionOnMessageThread method nothing happens for this tab. i did find that the browser script objects passed to the plugin instances are unique. all iam doing within the MessageManager::callFunctionOnMessageThread method is “call” a function on the browser script object
any help would be appreciated. iam not sure if the message manager needs to be updated indicating that the new tab in the browser is the message thread where the event loop is running.
Also found that the DynamicObjectWrappingIDispatch object’s invoke method returns a failure for the second tab in IE 7. Within the implementation of this method
if (source->GetIDsOfNames (IID_NULL, (LPOLESTR*)&name, 1, 0, &id) == S_OK)
is failing. so it seems the browser script object for the 2nd tab does not have this method. i also found a similar issue at the following
thanks in advance