 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mark Jacobs Guest
|
Posted: Thu Jun 09, 2005 2:02 pm Post subject: TWebModule creation and destruction |
|
|
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
|
Posted: Mon Jun 13, 2005 10:08 am Post subject: Re: TWebModule creation and destruction |
|
|
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 |
|
 |
|
|
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
|
|