1. All code leading up to an association being received
2. All code to handle processing an association
The main thread first runs all code form chunk #1 and then sits in a loop
calling ASC_receiveAssociation.
The rest of the code we put into a thread procedure, and whenever the main
thread receives an association, it creates a thread for that thread proc and
passes in the association pointer as the thread param.
We've been doing it this way for about 3 years now and have it out working
in dozens of sites with multiple modalities. We've never had a problem
before, so I think this is a safe way to do it.
-Tom
"yuyu" <yuyu...@hotmail.com> wrote in message
news:5be7b4f3.03012...@posting.google.com...