Before continue be sure to read
The problem with "The Problem with Threads" then because we have good thread safe monks here around
search for
them.
HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.