Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Crash while opening a floating pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash while opening a floating pane

 Post Reply Post Reply
Author
Message
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post Topic: Crash while opening a floating pane
    Posted: 21 June 2005 at 3:21am

Hello,

I am using a pane and attached a view to this pane. The view is derived from CFormView. It has some controls placed on it. I am using setlayout for storing the last state of the panes.

Now

1. if the pane is fixed and i close the application everything works smoothly and application closes. If i try to open the  project again the project opens without a problem.

2. if i float the pane and then i close the application then the application closes gracefully but in this case when i open the project, it flashes the floating rectangle and application closes immediately.

This problem occurs only if i float the pane with CFormView as an attached view.If i float other panes and close and open the project everything works normally.

What could be the problem?Pl. guide.

Regards
Back to Top
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2005 at 1:50am

I request oleg to kindly look into this problem.

Thanks

Regards
Back to Top
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2005 at 1:50am
Whwn we retrieve the saved panes at what is the sequence of sending OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) message for different panes? It is found that my program crashes if the sequence is changed.
Regards
Back to Top
thodgson View Drop Down
Groupie
Groupie


Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2005 at 8:25pm

I have the same exact problem. (Refer to post: http://forum.codejock.com/forum_posts.asp?TID=1904&K W=thodgson )

Never found out how to resolve this.

Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit
Back to Top
spiderM9 View Drop Down
Newbie
Newbie
Avatar

Joined: 21 October 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote spiderM9 Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2005 at 6:06pm
I had a similar problem.  It turned out that I was calling CreatePane in response to OnDockingPaneNotify.  This worked fine if the docking pane layout only contained docked panes, but would always crash when reloading a layout that contained a floating pane.

I needed to set up separate code paths for dynamically creating a pane at runtime (as opposed to static creation at startup), vs. responding to the OnDockingPaneNotify that occured as a result of loading a previously saved docking pane layout.
Back to Top
thodgson View Drop Down
Groupie
Groupie


Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2005 at 7:08pm

Thanks for the post...

I am calling CreatePane in my CMainFrame::OnCreate method which works fine if a docking pane is not floating. 

If a docking pane is floating, the panes try to initialize before the CMainFrame class is completely created.   If that makes any sense.

Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2005 at 1:23am

Please show all code of OnCreate and OnDockingPaneNotify

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.094 seconds.