hm, what is this COM object doing which ColdFusion cannot? You got the C# source?
"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Benjamin Dry <[EMAIL PROTECTED]> To: CF-Talk <[email protected]> Sent: Thu Jul 20 08:29:24 2006 Subject: COM object Instantiation 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:247157 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

