> > Thanks for your reply. I'm afraid it's left me even > > more confused about which way to go with this :-( Is your problem something you could handle with a C atexit() handler? Carl Witty