A lib file was delivered to me as client API towards a socketbased application.
I had to write a dll in C that exported the functions in the LIB file so that I could call them from my VB code.
I could then reach the API from VB using the declare statement.
My VB code is built in VB6.0 as a COM component (dll) using Appartment threading and is running under MTS.
The C dll is built in VC6.0 and compiled as Multithreaded.
The c code just passes the parameters further to the lib function.
Now when I put my code under some preassure Errors occures... on the multiprocessor system the Error is much more frequent.
I put my C dll under preasure, and no error occures... When the calls pass through the VB dll the error comes !
Could this have something to do with trhreads and threadsafe applications?
How can I verify that my c dll is "threadsafe" ?
And what can solve my problem ?