Subj : Re: General Protection Fault To : borland.public.cpp.borlandcpp From : Todd Burch Date : Sun Jan 23 2005 02:41 pm Bob Gonder wrote: >No, Local variables are required for reentrancy. >It's globals you don't want to be using in reentrant functions. >Every time you enter a function, new local variables are created on >the stack, and destroyed when the function returns. > >>Would a better technique be to dynamically aquire some working storage? > >Only if the size is unkown, or large, or needs to be returned to the >caller. > > Thanks for the clarification Bob. I'm used to programming in assembly (IBM Mainframes) and the C/C++ programming model is new to me. .