(snip)Quote:> Hi,
> Is there a way that I can display the function call history when my signal
(snip)Quote:> void Terminate(int SignalNo) {
> printf("Terminated on %d\n",SignalNo);
> exit(-1);
The easiest way that I know of is to use abort() instead ofQuote:> -----------------------------------------------
> Suppose the error happened inside of 'ReadLine', I'd like the 'Terminate'
> function to indicate that the error occured at line x in 'ReadLine' that was
> call by 'ReadLineInFile' at line y by 'main' at line z...
> Is there a stack somplace that I can get this info from? Must I absolutely use
> the de* options?
exit(-1) to force a core dump, then look at the core.
--
Larry D. Pyeatt All standard disclaimers apply.
http://www.veryComputer.com/~pyeatt