![]() |
Problem while closing the application |
Post Reply ![]() |
Author | |
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() Posted: 06 August 2008 at 7:19am |
Hello,
i am working on a MDI application using xtreame toolkit. i have created one docking pane in which 3 tabs are there.
if docking pane is open,and if i close the application,Why it comes to the
XTP_DPN_SHOWINDOW event of OnDockingPaneNotify() function?
Can u please tell,why it is happening?
Because my application is crashing because of this, when i close the application. And it is becos of above case only.
Please explain why it comes to the event when we close the application? and how can we stop this?
Thanks And Regards,
Vijay.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
What code do you have in XTP_DPN_SHOWINDOW ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() |
Hello, Herewith i am sending the text file and giving the code which i have handled on XTP_DPN_SHOWWINDOW. i have used this event as event of tabclick also,so here i am checking which tab is clicked? and it works fine as well. it reduced my work of creating custom class of tabbedcontainer etc etc.But when i close the application (not closing the dockpane)it goes to the line
m_DlgCurveCorrection.DockPaneCurveInitialReset(); and crash.uploads/20080809_021034_New_Text_Docume.zip
i know it crash becos of the functionality i have written in this function.
even if i close the dockpane first and then close the application,it comes the the XTP_DPN_SHOWWINDOW evet.
But why it satisfies the condition when i click on the close button of the application,not the dock pane close button? the other if condition, it doesnt satisty.only last condition it is satisfying?
why so?
Thanks And Regards,
Vijay.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
try to remove all these
if(pPane == pwndPaneRGB)
{ m_DlgRGB.DockPaneRGBInitialReset(); return TRUE;
} if(pPane == pwndPaneForm) { m_DlgHistogram.DockPaneHistogramInitialReset(); return TRUE; } if(pPane == pwndPaneCurve)
{ m_DlgCurveCorrection.DockPaneCurveInitialReset(); return TRUE; } and reset them in OnInitialUpdate handlers.
|
|
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 |