Jump to content

Error

- - - - -

  • Please log in to reply
3 replies to this topic

#1
irancplusplus

irancplusplus

    Learning Programmer

  • Members
  • PipPipPip
  • 65 posts
Hi
I usually use
PostQuitMessage
to exit Windows API programs.
but for some programs, Windows 7 shows this message when the program exits:
Posted Image
what's the problem?
Windows XP doesn't show any message like this?!
I wrote this ebook! Will you translate it into English for free!?:confused: PM me!

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Windows 7 handles crashes differently from XP.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
irancplusplus

irancplusplus

    Learning Programmer

  • Members
  • PipPipPip
  • 65 posts
but it's not a crash it's normal exit!
I think PostQuitMessage and exit(0) are no longer normal in Win7. How can one prevent this error message?
I wrote this ebook! Will you translate it into English for free!?:confused: PM me!

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Why not just return 0?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users