PC Review


Reply
Thread Tools Rate Thread

Slow COM Interop with framework 2.0

 
 
selain@libero.it
Guest
Posts: n/a
 
      17th Jul 2008
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 ?
 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      18th Jul 2008
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

<(E-Mail Removed)> wrote in message
news:37fad700-3cc6-477a-9e61-(E-Mail Removed)...
> 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 ?



 
Reply With Quote
 
selain@libero.it
Guest
Posts: n/a
 
      7th Aug 2008
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 ..

On 18 Lug, 00:00, "Scott M." <s-...@nospam.nospam> wrote:
> 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
>
> <sel...@libero.it> wrote in message
>
> news:37fad700-3cc6-477a-9e61-(E-Mail Removed)...
>
>
>
> > 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 ?- Nascondi testo citato

>
> - Mostra testo citato -


 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      8th Aug 2008
Well, as I said, there's not much you can do about performance with COM
InterOp bottlenecking your code.



<(E-Mail Removed)> wrote in message
news:31b1cc98-b03f-4807-a917-(E-Mail Removed)...
>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 ..
>
> On 18 Lug, 00:00, "Scott M." <s-...@nospam.nospam> wrote:
>> 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
>>
>> <sel...@libero.it> wrote in message
>>
>> news:37fad700-3cc6-477a-9e61-(E-Mail Removed)...
>>
>>
>>
>> > 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 ?- Nascondi testo citato

>>
>> - Mostra testo citato -

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what happen to microsoft.public.dotnet.framework.interop gs Microsoft Dot NET Framework 3 6th Jun 2006 12:16 AM
Can enable Interop logging featrue in full .NET framework 2.0? dotNeter Microsoft Dot NET 0 4th Jun 2006 09:31 AM
Framework 2.0, COM Interop, Managed C++ ameliev Microsoft Dot NET Compact Framework 1 26th May 2006 06:26 PM
Interop problems using VFP 6.0 and Framework 2.0 beta lloyd Microsoft Dot NET Framework 0 10th Dec 2004 06:05 AM
Html Interop dll doesnt work in minimal installation of .NET Framework 1.1 Atul Microsoft Dot NET Framework 0 19th Dec 2003 09:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:12 PM.