 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tim Guest
|
Posted: Wed Jan 11, 2006 10:35 pm Post subject: Q: What is the correct thread/memory/Instancing model for II |
|
|
First, in SIMPLE terms, WHAT Threading model and instancing type
should I use for a Delphi COM object in order to use it on an IIS-ASP
based web-site (if it's called once per page -- possibly by many users
at once)?
My current project requires ASP's in VB Script running on IIS 5 and
IIS 6 to call my Delphi COM objects. If we have ONE user run, or even
two users run, there is no "leak"... and I've tested the code with
FastMM4, and there are no apparent leaks, so I'm suspecting my problem
is with my selection of Threading-Model and Instancing types.
My object has no global variables, as such... but has COM
Object-level pseudo-globals... Like this :
INITIALIZATION
tAutoObjectFactory.Create( comServer,
tMySearchEngine,
Class_MySearchEngine,
ciSingleInstance,
tmApartment );
And the object is thusly, like
TYPE tMySearchEngine = CLASS( tAutoObject, iMySearchEngine )
lots of procedures and functions and stuff
like
CountryCode : STRING;
END;
But the stuff inside the tMySearchEngine class is local to the
tMySearchEngine itself and there are no UNIT INTERFACE/IMPLEMENTATION
globals.
Shouldn't that class be protected, therefore by scope, if each time we
"create" the COM object the Class is then created?
For example, if I create two COM objects, then the CountryCode of one
should be isolated and distinct from the countrycode of the other, is
that not correct?
|
|
| Back to top |
|
 |
Riki Wiki Guest
|
Posted: Mon Jan 16, 2006 10:56 pm Post subject: Re: Q: What is the correct thread/memory/Instancing model fo |
|
|
Hoi Tim
You need to repost your question on the Borland news server to make
everybody see it and possibly answer your question. Further, this news
group do not officially exist, the group to use is
borland.public.delphi.com.activex.writing.
Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|