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 

TWebModule creation and destruction

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
Mark Jacobs
Guest





PostPosted: Thu Jun 09, 2005 2:02 pm    Post subject: TWebModule creation and destruction Reply with quote



I have read that TWebModule does not unload its DLL between requests unless

Application->CacheConnections=false;

is set. Does that mean that my WebModuleDestroy event won't be called after
each request unless I set Application->CacheConnections=false; ?

//---------------------------------------------------------------------------
void __fastcall TWebModule1::WebModuleDestroy(TObject *Sender)
{
mjclosedb(AdsTable1,AdsConnection1); mjclosedb(AdsTable3,AdsConnection3);
delete fldlist; delete idxlist; if (cpd1) { delete cpd1; cpd1=NULL;}
}

In my constructor, I have :-

//---------------------------------------------------------------------------
__fastcall TWebModule1::TWebModule1(TComponent* Owner)
: TWebModule(Owner)
{
fldlist=new TStringList(); idxlist=new TStringList();
rtpth=ExtractFilePath(ParamStr(0));
rtpth=ExtractFilePath(ParseFileDesc(rtpth+"..\Surveys\"));
ForceDirectories(rtpth);
}

Where should I be closing my databases? Wehre should I be opening them? TIA,
--
Mark Jacobs
http://www.dkcomputing.co.uk
Back to top
Mark Jacobs
Guest





PostPosted: Mon Jun 13, 2005 10:08 am    Post subject: Re: TWebModule creation and destruction Reply with quote



Bump, bump... (cannot find anything on the web about this)

I am looking for the most efficient way of using TWebModules where the app is
being loaded and run for each form submission - I need to tune down how long
it is taking between form submissions. TIA,
--
Mark Jacobs
http://www.dkcomputing.co.uk
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) 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.