Bug Report Q412923
Visible to All Users

MetroUI - An exception thrown when right-clicking TileItem

created 13 years ago

I'm trying to familiarize myself with the DocumentManager control, specifically the MetroView portion of it. The application seems to be working well, except that, when I right-click and press the Exit button from the top bar to close the application, it crashes in Application.Run(new Main()) with a "Object reference not set to an instance of an object." exception. This is the stack trace:

at DevExpress.XtraBars.Docking2010.Views.MetroUI.BaseContentContainerActionsBarInfo.DevExpress.XtraBars.Docking2010.IButtonsPanelOwner.Invalidate()
at DevExpress.XtraBars.Docking2010.ButtonsPanelHandler.Invalidate()
at DevExpress.XtraBars.Docking2010.BaseButtonHandler.OnMouseUp(MouseEventArgs e)
at DevExpress.XtraBars.Docking2010.Views.MetroUI.BaseContentContainerActionsBarInfo.DevExpress.XtraBars.Docking2010.Views.IInteractiveElementInfo.ProcessMouseUp(MouseEventArgs e)
at DevExpress.XtraBars.Docking2010.Customization.NavigationAdornerElementInfoArgs.OnMouseUp(Point screenPoint)
at DevExpress.XtraBars.Docking2010.Customization.NavigationAdornerBootStrapper.System.Windows.Forms.IMessageFilter.PreFilterMessage(Message& m)
at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at iAIM.Program.Main() in C:\Users\aa\Desktop\RP\Test LINQ\iAIM\iAIM\Program.cs:line 22
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

It's almost as if the application is attempting to run twice. But I'm not quite sure why. Any thoughts on why this might be occurring?

Comments (2)
DevExpress Support Team 13 years ago

    I have not managed to reproduce this issue on my side. Please modify my project to illustrate it.

    AA AA
    Adlay Almeida (AA) 13 years ago

      I've added a PageGroup and User Control. If you click on the tile and then right-click and select Exit you will see the crash. Obviously I'm doing something wrong when I'm hooking up the document/user control logic. Please advice.

      Answers

      created 13 years ago (modified 13 years ago)

      Hi,
      Thank you for your message.
      It appears that this behavior is not quite correct. I will pass this ticket to our developers, so that they can investigate this shortcoming on their side. Please bear with us.
      UPDATE:
      We are glad to inform you that this issue has been fixed. Now you can request a public fix on this page. When it is available, download and install it on your machine.

        Comments (1)
        DevExpress Support Team 13 years ago

          Hi,
          I have updated my answer based upon your comments. Please check my original answer.

          created 13 years ago (modified 13 years ago)

          Sorry, still familiarizing myself with this new format. This is not a solution, but rather a reposting of the modified project because the one in the comments froze and I'm not certain that you received it.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.