Subj : How to print a stack trace? To : borland.public.cpp.borlandcpp From : "Siemel Naran" Date : Fri Aug 08 2003 10:48 am How to print a stack trace? I found a file "dbeng.h" in the include folders. So here is my program but it does not work: #include // Borland specific #include // Borland specific void action(int count) { const long flags = DEBUG_STACK_ARGUMENTS | DEBUG_STACK_FUNCTION_INFO | DEBUG_STACK_SOURCE_LINE | DEBUG_STACK_FRAME_ADDRESSES | DEBUG_STACK_COLUMN_NAMES | DEBUG_STACK_NONVOLATILE_REGISTERS | DEBUG_STACK_FRAME_NUMBERS | DEBUG_STACK_PARAMETERS | DEBUG_STACK_FRAME_ADDRESSES_RA_ONLY ; IDebugControl().OutputStackTrace(1, NULL, 3, flags); action(count-1); } int main() { action(7); } .