CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33
  1. #31
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863

    Re: MFC Crash on exit

    Hmmmm... I always use _CrtDbgReport(...) or one of the macros _RPT#
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  2. #32
    Join Date
    Aug 2002
    Posts
    212

    Re: MFC Crash on exit

    I tried replacing some things with the MDIActivate function, I still had some trouble. My manually maintained pointers do what I need, and don't cause a crash, so I'm going to stick with them. Thanks for the help everyone.

  3. #33
    Join Date
    Jun 2004
    Posts
    1,352

    Re: MFC Crash on exit

    Quote Originally Posted by souldog
    You probably shouldn't be admitting that.

    Your right, honest is not always the best policy, but AfxMessageBox, printf (for console apps) and getch(), have always worked for me.


    What is cool about AfxMessageBox and any function where you can stop the computer program and display variables is 90 % of debug. Of course it doesn't help for memory leaks.




    I seen people dislplay all kinds of error messages and talk about debugers, and I just think, well obviously I have to put my AfxMessageBox somewhere before that happens and work it back.

    ..... I think you get the point

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured