Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Problem while closing the application
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem while closing the application

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Topic: Problem while closing the application
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 07 August 2008 at 2:06am
Hi,
What code do you have in XTP_DPN_SHOWINDOW  ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2008 at 2:11am

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.
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 11 August 2008 at 2:30am
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
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.047 seconds.