Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Kaz Kylheku <kaz@kylheku.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Error handling |
| Date | 2011-11-06 01:15 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <20111105181250.398@kylheku.com> (permalink) |
| References | <j93dqr$d4u$1@speranza.aioe.org> <j93fac$mgp$1@dont-email.me> <j93vpg$t9v$1@speranza.aioe.org> |
On 2011-11-05, t1t0 <t1t0@noemail.not> wrote: > On Sat, 05 Nov 2011 15:31:31 +0000, Kaz Kylheku wrote: >> >> On glibc-based Linux, you have a function called backtrace. > > Nice, but there is a way to do the same think on windows? With a library > maybe? Do you know one that do this that is platform-independent ? It's been a few years for me, but there is "tool help" API in Windows for this kind of thing. You can catch an exception (in every thread) and then use the API to list the modules, snapshot the thread state and such. I wrote a crash dump reporter on Windows CE quite a few years ago. It was very helpful, because crashing programs would just "disappear without a trace" on that platform. With this module, programs left behind an "oops" text file with registers, stack memory, bytes around the instruction pointer and such. The API's are all there to cob this kind of thing together.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Error handling t1t0 <t1t0@noemail.not> - 2011-11-05 13:31 +0000
Re: Error handling Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-11-05 09:55 -0400
Re: Error handling t1t0 <t1t0@noemail.not> - 2011-11-05 18:37 +0000
Re: Error handling Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-11-05 14:50 -0400
Re: Error handling t1t0 <t1t0@noemail.not> - 2011-11-06 10:36 +0000
Re: Error handling Kaz Kylheku <kaz@kylheku.com> - 2011-11-06 01:15 +0000
Re: Error handling t1t0 <t1t0@noemail.not> - 2011-11-06 10:44 +0000
Re: Error handling Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-11-06 06:02 -0800
Re: Error handling Kaz Kylheku <kaz@kylheku.com> - 2011-11-06 16:21 +0000
Re: Error handling Nobody <nobody@nowhere.com> - 2011-11-05 14:10 +0000
Re: Error handling Kaz Kylheku <kaz@kylheku.com> - 2011-11-05 15:31 +0000
Re: Error handling Mike Manilone <zhtx10@gmail.com> - 2011-11-06 03:56 +0000
csiph-web