I am trying to track down what appears to be a threading issue with a 3rd party supplied COM object made in .net using C#. The dll is supposed to be thread safe but under load appears to work in a non thread safe way.
I have built a coldfusion app that has many process calling a method from the COM object instantiated at application. The COM takes a string (a small xml), waits for 40 seconds then spits the same string back in a variable passed by reference. Under heavy load the string that is returned is the string passed in by a different execution. If I exchange it for a different COM, say the Com wrapper version of htmlTidy and do the same thing the string returned is correct. If I change the way it works and move the instantiation to the same function as the DLL method being called then it returns the right string. So does this mean that if the COM works correctly when each process instantiates it as opposed to at the application level it is not thread safe? And if not then say this method takes 40 seconds, is being executed at least 200 times every minute, is this a server killer? All the documentation seems to suggest that this is a very bad idea but any suggestions would be greatly appreciated... -- Benjamin Dry Web Developer - Programmer Enpresiv Group Pty Ltd 70 Halifax Street Adelaide SA 5000 Australia Ph: +61 8 8212 4521 | Fax: +61 8 8212 8744 | Mob: +61 (0)408 095 491 Email: [EMAIL PROTECTED] | Web: www.enpresiv.com <http://www.enpresiv.com/> ________________________________________________________________ This email message may contain information that is confidential and/or copyright intended only for the addressee(s). If you are not the intended recipient please use reply email to alert the sender and directly delete this email. Use, disclosure or reproduction of this email by anyone other than the intended recipient(s) is strictly prohibited. No guarantee is made that this email or any of its attachments are free of viruses. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247156 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4