![]() |
Crash while opening a floating pane |
Post Reply
|
| Author | |
jitu
Newbie
Joined: 29 April 2005 Location: Germany Status: Offline Points: 21 |
Post Options
Thanks(0)
Quote Reply
Topic: Crash while opening a floating panePosted: 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
|
|
![]() |
|
jitu
Newbie
Joined: 29 April 2005 Location: Germany Status: Offline Points: 21 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 June 2005 at 1:50am |
|
I request oleg to kindly look into this problem. Thanks |
|
|
Regards
|
|
![]() |
|
jitu
Newbie
Joined: 29 April 2005 Location: Germany Status: Offline Points: 21 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
thodgson
Groupie
Joined: 11 August 2003 Status: Offline Points: 78 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
spiderM9
Newbie
Joined: 21 October 2003 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
thodgson
Groupie
Joined: 11 August 2003 Status: Offline Points: 78 |
Post Options
Thanks(0)
Quote Reply
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. |
|
|
Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1 Platform: Vista(x64)-SP1 Language: Visual C++ 6.0 Currently: Satisfied w/ Toolkit |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 July 2005 at 1:23am |
|
Please show all code of OnCreate and OnDockingPaneNotify |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |