Click here to Skip to main content
15,921,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFirst Chance exception Pin
namratab13-Apr-07 11:10
namratab13-Apr-07 11:10 
AnswerRe: First Chance exception Pin
bob1697214-Apr-07 7:55
bob1697214-Apr-07 7:55 
QuestionDestructor Not Getting Called Pin
CoffeeAddict1913-Apr-07 11:09
CoffeeAddict1913-Apr-07 11:09 
QuestionRe: Destructor Not Getting Called Pin
Mark Salsbery13-Apr-07 11:23
Mark Salsbery13-Apr-07 11:23 
AnswerRe: Destructor Not Getting Called Pin
CoffeeAddict1913-Apr-07 11:32
CoffeeAddict1913-Apr-07 11:32 
GeneralRe: Destructor Not Getting Called Pin
Mark Salsbery13-Apr-07 11:36
Mark Salsbery13-Apr-07 11:36 
GeneralRe: Destructor Not Getting Called Pin
CoffeeAddict1913-Apr-07 11:48
CoffeeAddict1913-Apr-07 11:48 
GeneralRe: Destructor Not Getting Called Pin
Mark Salsbery13-Apr-07 12:10
Mark Salsbery13-Apr-07 12:10 
CoffeeAddict19 wrote:
Can I assume that CRatiosWin is not getting deleted in this segment of code?


Yes...correct.

I can't find where m_pMainWnd is destroyed in the MFC source...When I find it I'll post. Roll eyes | :rolleyes:

Try adding this override to your CPRatiosApp class:
virtual int ExitInstance()
{
   if (m_pMainWnd)
   {
      m_pMainWnd->DestroyWindow();
      m_pMainWnd = 0;
   }
 
   return CWinApp::ExitInstance();
}

Your destructor should be called when the m_pMainWnd->DestroyWindow(); is executed.

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Destructor Not Getting Called Pin
Mark Salsbery13-Apr-07 12:33
Mark Salsbery13-Apr-07 12:33 
AnswerRe: Destructor Not Getting Called Pin
John R. Shaw14-Apr-07 15:57
John R. Shaw14-Apr-07 15:57 
QuestionLogOff User from a Service running as System Pin
Gurkenscheibe13-Apr-07 10:44
Gurkenscheibe13-Apr-07 10:44 
Questionwhich one is parent? Pin
iayd13-Apr-07 9:02
iayd13-Apr-07 9:02 
AnswerRe: which one is parent? Pin
Wes Aday13-Apr-07 9:54
professionalWes Aday13-Apr-07 9:54 
QuestionRe: which one is parent? Pin
Maximilien13-Apr-07 9:56
Maximilien13-Apr-07 9:56 
AnswerRe: which one is parent? Pin
CPallini13-Apr-07 10:10
mveCPallini13-Apr-07 10:10 
AnswerRe: which one is parent? Pin
CPallini13-Apr-07 10:06
mveCPallini13-Apr-07 10:06 
AnswerRe: which one is parent? Pin
bob1697213-Apr-07 10:10
bob1697213-Apr-07 10:10 
AnswerRe: which one is parent? Pin
JudyL_MD13-Apr-07 10:14
JudyL_MD13-Apr-07 10:14 
GeneralRe: which one is parent? Pin
iayd13-Apr-07 11:15
iayd13-Apr-07 11:15 
Questionhard disk serial number in vista Pin
viral_umang@hotmail.com13-Apr-07 8:59
viral_umang@hotmail.com13-Apr-07 8:59 
AnswerRe: hard disk serial number in vista Pin
bob1697213-Apr-07 9:58
bob1697213-Apr-07 9:58 
QuestionRe: hard disk serial number in vista Pin
viral_umang@hotmail.com13-Apr-07 10:16
viral_umang@hotmail.com13-Apr-07 10:16 
AnswerRe: hard disk serial number in vista Pin
bob1697213-Apr-07 10:45
bob1697213-Apr-07 10:45 
QuestionWhat happens if client CSocket does not process/clear returned package? Pin
zipliu13-Apr-07 5:04
zipliu13-Apr-07 5:04 
AnswerRe: What happens if client CSocket does not process/clear returned package? Pin
Mark Salsbery13-Apr-07 7:28
Mark Salsbery13-Apr-07 7:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.