"M.-A. Lemburg" <mal@lemburg.com> writes: > > I recommend to use thread-local variables. > > Thanks, but that only works in multi-threaded environments where > you process each call in a different thread. This application is > single-threaded (even though it may turn into a multi-threaded > one at some later stage). That is not true. In the single-threaded case, just use global variables. Regards, Martin