> I went through the code and made sure all references get closed. I
> rewrote the core subroutines for another purpose, but the results are
> the same. The program will close but often takes several minutes.
I also think this has to do with references that haven't been closed.
To help narrow it down, you might try to comment out or delete
functional areas of the program, let it run awhile and see if the exit
takes a long time. Keep deleting in large chunks until you make a
difference, then undo and split up the chunk.
Greg McKaskle