Slow COM Interop with framework 2.0

S

selain

Hi, i've got a problem with dotnet framework 2 and the tidestone
component f1book.
I've got an application built with visual studio 2005 that use the
f1book component (so it creates the interop layer dlls do comunicate
with the component).
On certain computers it becomes incredibly slow to perform the
features, i'm almost sure that the problem is in COM interop when i
call the component methods, does anyone have any suggestion to tweak
it up ?
 
S

Scott M.

COM InterOp is inherantly going to introduce a performance bottleneck.

There's not too much you can do about increasing performance, other than
making sure that you are releasing the COM objects from the CLR by calling
Marshal.ReleaseComObject(obj) when you are done with the COM reference in
your managed code.

- Scott
 
S

selain

I tried what you told me bu speed remained the same.

Also it seems that if i disconnect the network cable the problem never
shows (tha application has nothing to do with the network)

I'm a bit confused ..
 
S

Scott M.

Well, as I said, there's not much you can do about performance with COM
InterOp bottlenecking your code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top