Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / February 2006

Tip: Looking for answers? Try searching our database.

In-Process COM Slow

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dotBomb - 07 Feb 2006 21:54 GMT
We are finding that one method exposed by the mfcom.dll library takes noticeably longer on any machine other than the one in which this application is being developed.  We have attempted to match the apartment threading model of the mfcom.dll file with the following code:

    Thread.CurrentThread.ApartmentState = ApartmentState.STA

then using

    Thread.CurrentThread.ApartmentState = ApartmentState.MTA

There was no change.  We have also tried packaging the type library (tlb) of the mfcom.dll file (mfcom.tlb) with the application, but again, there was no change.  The method we are calling is enumerating Citrix published applications published in a farm chosen by a user.  This method works very fast on the development machine, but seems to lag considerably on all other machines.

Can anyone tell us why the in-process COM calls execute so slowly on all machines other than the development machine?

Thanks,

Daniel
amanjit.singh.gill@googlemail.com - 18 Feb 2006 15:12 GMT
Did you register the COM type library (tlb) on the development machine
with regasm.exe ? This all sounds as if IDispatch access was tried
which is always slower.

Cheers
Amanjit Gill
amanjit.singh.gill@googlemail.com - 18 Feb 2006 15:33 GMT
Sorry I meant to ask: did you use regasm.exe on the tlb on the
_deployment_ machine where its running so slow ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.