I have a third-party COM dll that appears to be not thread safe. The dll itself is used to process a binary file.
I have two .NET threads running in parallel. Each creates it's own isntance of the same object from that COM dll used to process the files. Threads never try to process the same binary file at the same time so there should not be any access violations. If a certain method of that object is called on both instacnes at the same time, both calls faills with memory related com exceptions, even tho they are processing completely different files. Yet calling those over and over sequentially yields no problems. Currently i am forced to set my application into a single-threaded mode. Is there a way to somehow wrap that COM dll so my two threads can use it at the same time? Thank you. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
