How to generate a core upon exit?

Discussion in 'C++' started by Brent Nye, Aug 22, 2003.

  1. Brent Nye

    Brent Nye Guest

    exit(0) or exit(1) or exit(-1) will not produce a core in HP-UX

    I am trying to exit with a core dump inside of a new_handler function, it does
    not core dump.

    Any suggestions?

    Thanks,

    Brent
    Brent Nye, Aug 22, 2003
    #1
    1. Advertising

  2. Brent Nye

    Rolf Magnus Guest

    Brent Nye wrote:

    > exit(0) or exit(1) or exit(-1) will not produce a core in HP-UX
    >
    > I am trying to exit with a core dump inside of a new_handler function,
    > it does not core dump.
    >
    > Any suggestions?


    This question is off-topic here, since standard C++ (which is the only
    topic of this newsgroup) doesn't specify what a "core" is.

    Having that said, you may take look at the abort() function, which at
    least under Linux dumps core by default.
    Rolf Magnus, Aug 22, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FuZHk=?=

    Code to Exit Web App and Exit Internet Explorer

    =?Utf-8?B?U2FuZHk=?=, Aug 3, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    7,874
    =?Utf-8?B?U2FuZHk=?=
    Aug 5, 2005
  2. Joe Smith
    Replies:
    4
    Views:
    65,788
    sandeep1976
    Nov 8, 2006
  3. Replies:
    2
    Views:
    442
    Jeff Epler
    May 31, 2005
  4. QQ
    Replies:
    5
    Views:
    505
    Jonathan Adams
    May 10, 2005
  5. bsder
    Replies:
    10
    Views:
    508
    Big and Blue
    Dec 2, 2005
Loading...

Share This Page