Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Exception occurs trying to collapse pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Exception occurs trying to collapse pane

 Post Reply Post Reply
Author
Message
thawary View Drop Down
Newbie
Newbie


Joined: 01 December 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote thawary Quote  Post ReplyReply Direct Link To This Post Topic: Exception occurs trying to collapse pane
    Posted: 01 December 2005 at 9:03am

The following are steps required to create the problem:

1) Dock a pane
2) Press the pin on the top of the pane to autohide it
3) Press on the pane to show it (Expand the pane)
3) do something that takes time in the application while the pane is not hidden (not collapsed)
4) Wait for a second and try to collapse the pane by pressing on the pin while the lengthy operation is taking place
5) The following exception occurs:

"System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageA(MS G& msg)
   at System.Windows.Forms.ComponentManager.System.Windows.Forms.U nsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int 32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)"

and i think it happens because the lengthy operation freezes the screen while the docking manager internally or something collapses the pane, but it is still expanded in front of the user so when he presses the pin again the null reference exception happens in your docking manager

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.174 seconds.