Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dump core



matt shultz wrote:
> how can i get my application to dump core?  it's not dumping core.

Short answer: X11 applications never dump core when they receive a protocol
error.  They just exit.

Long answer: You can make them core, but it takes a bit of work.  Look
at the X11 calls XSetErrorHandler and XSynchronize.  With the
appropriate calls, you can make all X11 calls synchronous, and have your
error handler be called whenever something bad happens.  You abort()
inside your error handler, and you're in a much better state.

-Sean

__
email@hidden
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.

References: 
 >dump core (From: matt shultz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.