Print Page | Close Window

Crash while opening a floating pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2415
Printed Date: 05 January 2026 at 8:03am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash while opening a floating pane
Posted By: jitu
Subject: Crash while opening a floating pane
Date 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



Replies:
Posted By: jitu
Date Posted: 23 June 2005 at 1:50am

I request oleg to kindly look into this problem.

Thanks



-------------
Regards


Posted By: jitu
Date 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


Posted By: thodgson
Date 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&KW=thodgson - 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 - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit


Posted By: spiderM9
Date 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.


Posted By: thodgson
Date 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 - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit


Posted By: Oleg
Date Posted: 04 July 2005 at 1:23am

Please show all code of OnCreate and OnDockingPaneNotify



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net