Re: ADO Based Datamodules in ISAPI applications
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 07/01/04
- Next message: Arnie Mauer: "Re: ADO performance"
- Previous message: Brian Bushay TeamB: "Re: Storing Unicode text to ntext field of MS SQL 2000 Server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 01 Jul 2004 12:54:22 -0500
>I have an application that uses a Datamodule with ADO components on it.
>I would like to put an ISAPI (TWebModule) around this datamodule but having problems (basically the web server crashes). I think the problem is the use of ADO com components.
>I have succeeded in using ADO in an ISAPI application that doesn't have seperate datamodules, using the ActiveX call coinitialize(nil),but, this doesn't seem to help with with my scenario of a seperate datamodule. I have tried putting coinitialse on the create event of both the TWebModule and the datamodule.
An Isapi DLL calls CoInitialize in its Applicaiton.initialize line of code.
Since each dll created has its own thread you should not have to call
Coiitialize.
How are you creating the data module?
You should be doing it from the WebModule
MyDataModule := TmyDataModule.create(nil)
Once it is created open its TadoConnection and any components.
-- Brian Bushay (TeamB) Bbushay@NMPLS.com
- Next message: Arnie Mauer: "Re: ADO performance"
- Previous message: Brian Bushay TeamB: "Re: Storing Unicode text to ntext field of MS SQL 2000 Server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|