Hi All
I'm writing an application thats using threads and a third party dll.
Each thread uses this third party dll to log into another application supplying a different username and password, the problem is that the dll stores the login details in a static class and so every thread is accessing the same value. Example:
[Thread 1] sets the Username as "Username 1";
[Thread 1] gets the Username which equals "Username 1";
[Thread 2] sets the Username as "Username 2";
[Thread 1] gets the Username which now equals "Username 2";
Is there anyway that each thread can load their own seperate version of the library?
Cheers
I'm writing an application thats using threads and a third party dll.
Each thread uses this third party dll to log into another application supplying a different username and password, the problem is that the dll stores the login details in a static class and so every thread is accessing the same value. Example:
[Thread 1] sets the Username as "Username 1";
[Thread 1] gets the Username which equals "Username 1";
[Thread 2] sets the Username as "Username 2";
[Thread 1] gets the Username which now equals "Username 2";
Is there anyway that each thread can load their own seperate version of the library?
Cheers
Comment