Re: legacy COM in asp.net
- From: "John Saunders [MVP]" <john.saunders at trizetto.com>
- Date: Thu, 17 Jan 2008 08:16:47 -0500
"Mr. Arnold" <MR. Arnold@xxxxxxxxxx> wrote in message
news:OVHPpsvVIHA.4440@xxxxxxxxxxxxxxxxxxxxxxx
"Scott" <chuck66766@xxxxxxxxx> wrote in message
news:9d2a1ec6-abb8-4846-b0f8-74e6008ed094@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
We created several COM objects with ATL and VC++ 5.0. They have runhttp://www.aspheute.com/english/20000828.asp
for a couple of years under our old Win2k IIS 5.0. Should they be
expected to work without revision in the newer asp.net?
That article is rather old. In particular, it seems to have been written
before Visual Studio.NET was released. You can do most of what it talks
about by using the Add Reference command and using the COM tab to select
your installed COM component.
In addition, the article does not mention issues with threading (they may
not have been widely known in 2000, which I think was before .NET 1.0 Beta
1).
ASP.NET handles each request on a different thread pool thread. If two
requests arrive at the same time for pages that use your COM component, then
two instances of your component may be accessed simultaneously. This may
well work if you have no shared state between instances of the component.
However, if you haven't tested in a multi-threaded environment before (on
multiple-CPU systems), then this will be the first time your COM component
has seen such use, and it may be the first time it has the opportunity to
fail for that reason.
Also, beware of using a single instance of the component stored in Session
or Application state, or in static variables. In this case, the single
instance will be called from multiple threads, making it even more likely
that it will fail if it wasn't built for that.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
.
- References:
- legacy COM in asp.net
- From: Scott
- Re: legacy COM in asp.net
- From: Mr. Arnold
- legacy COM in asp.net
- Prev by Date: Re: XML File processing
- Next by Date: RE: psexec Access denied
- Previous by thread: Re: legacy COM in asp.net
- Next by thread: How to search Team Foundation Server?
- Index(es):
Relevant Pages
|
Loading