Exactly, a windows app works fine. However, we do not have any events in our
application. We are using .NET Framework v1.0.
-psn
Hi,
I actually am beginning to think it is a bug int he interop layer.
Once UI read this post, I then created a simple app/service that creates
1000s of COM objects, releasing them each time.
Guess what? The win app works fine, the Service consumes like a tramp with a
bottle of meths!
So, where do we go from here?
Steve
> Exactly, a windows app works fine. However, we do not have any events in our
> application. We are using .NET Framework v1.0.
[quoted text clipped - 28 lines]
> > >
> > > -psn
psn.net - 25 May 2004 14:35 GMT
Steve,
So which version of the framework are you using? I was wondering whether
moving to 1.1 would make a difference in my case. Also, can you post your
test app?
-psn
> Hi,
>
[quoted text clipped - 44 lines]
> > > >
> > > > -psn
Gareth - 25 May 2004 14:59 GMT
We had a similar problem here and i read a while ago that it's a bug with
com interop and .net.
Set the Main method attribute to [MTAThread()]
(it worked for us...)
hope this helps.....
Gareth
> Steve,
> So which version of the framework are you using? I was wondering whether
[quoted text clipped - 54 lines]
> > > > >
> > > > > -psn
psn.net - 25 May 2004 17:42 GMT
Do we have a corresponding solution if we are running the application as a
service or calling the COM object through ASP.NET app?
-psn
> We had a similar problem here and i read a while ago that it's a bug with
> com interop and .net.
[quoted text clipped - 69 lines]
> > > > > >
> > > > > > -psn
Gareth - 28 May 2004 06:33 GMT
Not too sure how to make ASP.NET run under a different COM threading model.
sorry
Gareth
> Do we have a corresponding solution if we are running the application as a
> service or calling the COM object through ASP.NET app?
[quoted text clipped - 81 lines]
> > > > > > >
> > > > > > > -psn
psn.net - 28 May 2004 11:01 GMT
That's fine. Thaks for your solution. It seems to be working at least for my
service. I wonder whether ASP.NET, by default, runs in Multi-threaded
apartment model.
-pranav
> Not too sure how to make ASP.NET run under a different COM threading model.
>
[quoted text clipped - 91 lines]
> > > > > > > >
> > > > > > > > -psn
SPG - 28 May 2004 17:40 GMT
JSPs allow you to set the threading model in the page declarations.
There must be some form of directive in ASP.NET to do the same???
> Not too sure how to make ASP.NET run under a different COM threading model.
>
[quoted text clipped - 91 lines]
> > > > > > > >
> > > > > > > > -psn
SPG - 25 May 2004 18:01 GMT
Seems to work for me..
Am going to test overnight and then post my working and not working
solutions!
Cheers
Steve
> We had a similar problem here and i read a while ago that it's a bug with
> com interop and .net.
[quoted text clipped - 69 lines]
> > > > > >
> > > > > > -psn
SPG - 25 May 2004 15:22 GMT
Hi PSN,
We are using 1.1. Did not help!
Will have a go at Gareth's solution now.
If all fails will post my test app code..
Steve