BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Q: What is the correct thread/memory/Instancing model for II

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Development
View previous topic :: View next topic  
Author Message
Tim
Guest





PostPosted: Wed Jan 11, 2006 10:35 pm    Post subject: Q: What is the correct thread/memory/Instancing model for II Reply with quote



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





PostPosted: Mon Jan 16, 2006 10:56 pm    Post subject: Re: Q: What is the correct thread/memory/Instancing model fo Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Development All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.