We are building a threaded application which reacts to an event and starts
the required processing on a new thread.
However, we are finding it difficult finding a way of getting the function
to run using its own data. I've looked at SetData and GetData but these seem
only to be available once the thread is running.
The ThreadStart delegate won't allow me to use a function with parameters..
so I can see now way that a parent thread can pass a parameter to a child
thread (a file name in this instance) in a thread safe way.
Does anyone out there have any ideas as to how this can be done? It seems to
me that the SetData and GetData have limited usefulness if you cannot pass
thread specific data to the thread.
Thanks