Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > How to generate a core upon exit?

Reply
Thread Tools

How to generate a core upon exit?

 
 
Brent Nye
Guest
Posts: n/a
 
      08-22-2003
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
 
Reply With Quote
 
 
 
 
Rolf Magnus
Guest
Posts: n/a
 
      08-22-2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Core Solo & Core Duo are not Core microarchitecture; 65nm Pentium M chips bigal Hardware 0 03-22-2006 11:24 AM
Dual Core Vs Single Core Processor Real World Performance Difference Edge Computer Information 3 03-15-2006 01:30 AM
posible: dual core + single core =?Utf-8?B?TmllbHMgQ2hyLg==?= Windows 64bit 7 11-22-2005 06:11 PM
Fedora Core 3 & Core 4 Password questions Brandon Computer Security 4 08-15-2005 04:30 AM



Advertisments