protected virtual void SetInfoBarText() { if (m_informationBar == null) { return; } string className = StringTbl.GetString("No Records", "Misc"); if (Clerk.CurrentObject != null) { string typeName = Clerk.CurrentObject.GetType().Name; if (Clerk.CurrentObject is CmPossibility) { CmPossibility possibility = Clerk.CurrentObject as CmPossibility; className = possibility.ItemTypeName(StringTbl); } else { className = StringTbl.GetString(typeName, "ClassNames"); } if (className == "*" + typeName + "*") { className = typeName; } } // This code: ((IPaneBar)m_informationBar).Text = className; // causes about 47 of the following exceptions when executed in Flex. // First-chance exception at 0x4ed9b280 in Flex.exe: 0xC0000005: Access violation writing location 0x00f90004. // The following code doesn't cause the exception, but neither one actually sets the Text to className, // so something needs to be changed somewhere. It doesn't enter "override string Text" in PaneBar.cs (m_informationBar as IPaneBar).Text = className; }