IE 8 ADX Loader Error "Moniker is already registered in running object table"

Add-in Express™ Support Service
That's what is more important than anything else

IE 8 ADX Loader Error "Moniker is already registered in running object table"
ie8.0.7600 when opening tabs occasionally I will get this message in a popup.  
rob lingstuyl




Posts: 5
Joined: 2011-02-25
We are using a toolbar that controls the visibility of a pop out side bar. This error is occurring when we have multiple tabs open in the same instance and in other instances of IE. When the sidebar is not visible and we load the sidebar with the code below we get the stated message, "Moniker is already registered in running object table," but only the first time that we shows the side bar. Subsequent toggles of the sidebar do not seem to be raising this error.

Code:
[ComVisible(true), Guid("1853DD45-200B-4E7C-BBBF-83B4B91F9FE5")]
public class BrowserHelper : AddinExpress.IE.ADXIEModule
{
...
private void InitializeComponent()
{
//
// IEModule
//
this.ModuleName = "IEPluginAgent";

this.components = new System.ComponentModel.Container();
this._toolBar = new AddinExpress.IE.ADXIEToolBarItem(this.components);
this._sideBar = new AddinExpress.IE.ADXIEBarItem(this.components);
this._statusBar = new AddinExpress.IE.ADXIEBarItem(this.components);
//
// adxieToolBar
//
this._toolBar.LoadAtStartup = true;
this._toolBar.MenuText = "inContact Toolbar";
this._toolBar.Position = AddinExpress.IE.ADXIEToolBarPosition.tbpNewRow;
this._toolBar.ToolBarType = "inContact.PluginAgent.IE.ToolBar";
//
// adxieSideBar
//
this._sideBar.LoadAtStartup = false; // make it so the bar is not loaded at the time the browser starts.
this._sideBar.AddToolButton = true;
this._sideBar.ToolButtonDefaultVisible = false;
this._sideBar.BarType = "inContact.PluginAgent.IE.SideBar";
this._sideBar.MenuText = "inContact Sidebar";
this._sideBar.MinSize = 250;

//
// IEModule
//
this.Bars.Add(this._sideBar);
this.Bars.Add(this._statusBar);
this.ModuleName = "inContact Plugin Agent";
this.ToolBars.Add(this._toolBar);
}
...
}

---Code that make the sidebar toggle----

Task.Factory.StartNew(delegate
{
try
{
if (this.IEApp.MenuBar)
{
X Don't remove the SideBar initialization... it needs to happen or it doesn't get
X events, because IE doesn't load the object until it's shown.
object dummy = null;
object show = false;
object guid = typeof(SideBar).GUID.ToString("B");

if (_view != null)
{
show = _view.CallControlShown;
}
IEApp.ShowBrowserBar(ref guid, ref show, ref dummy);
}
agentControl1.Parent = this.Handle;
}
catch (Exception ex)
{
Logger.Log(new LogInformation(ex));
}
});
Posted 28 Feb, 2011 13:46:33 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Rob.

Do you open the explorer bar in all opened tabs? If so, please try to send a message to all opened tabs/add-ons using the 'SendMessageToAll' method and open the explorer bar in the OnSendMessage event handler.
Posted 01 Mar, 2011 04:43:03 Top