.Net Com Interop Create Instance Slow
Posted
by B Z
on Stack Overflow
See other posts from Stack Overflow
or by B Z
Published on 2010-05-11T21:03:06Z
Indexed on
2010/05/11
21:04 UTC
Read the original article
Hit count: 389
I have a .net 4 application that uses a Com Dll to send SMS messages. I used TlbImp to create the interop assembly and that is what is referenced in the application.
When I try to create an instance of this class, it takes a really long time (2-5 seconds).
I ran performance profile in VS 2010 and the call that takes the longest by far is System.Activator.CreateInstance().
I am looking for tips on how to debug or gotchas with using Com Interop.
© Stack Overflow or respective owner