>Hi Fernando,
>
>Rick provided a good detailed answer to your question. When you think about all of the public variables and environment settings in VFP, it's not a good candidate for free-threading. VFP MTDLLs are "thread-safe" in the sense that each thread/apartment hosts a completely separate instance of the VFP environment. You don't have to worry about one apartment corrupting another.
>
>As far as critical sections, you don't need them for VFP environment settings, but you may still need them occasionally for resources shared by multiple threads. For example, if you have code that creates a table after checking if the file already exists. You would want to wrap that code in a critical section, so one thread could finish creating the table before another thread checks for its existence. Conceptually, critical section concurrency isn't all that different than table/record locks, but you're locking code instead of data.
>
Hi Joel! Nice to read you :)
Yeah, I've read all the answers, the link that Craig provided (a good article) a the exceptional and detailed answer from Rick, more various articles.
Thanks for your answer too, it's very clear.
Best Regards.-
Fernando D. Bozzo
Madrid / Spain