Re: TAdoconnection component causes crash in my CGI webapp

From: Andrew Ryazanov (aust_at_rin.ru)
Date: 03/18/05


Date: Fri, 18 Mar 2005 22:09:29 +0300


"Peter" <pvdacker@N0_SPAM_home.nl> wrote in message
news:423b03a1$1@newsgroups.borland.com...
> But when I just simply drop a TADOConnection on my TWebModule and then
after
> compile I want to call the same CGI app (no properties changed like
> connectionstring or so) my CGI App fails ????
> A normal application with a TADOConnection works fine and I get it also
> connected to my MsSQL2000 database(which is on a another server)
> What could be wrong ?

Perhaps you don't call CoInitialize. That's can be a reason why the app
crashes. Call CoInitializeEx(nil,COINIT_MULTITHREADED or
COINIT_APARTMENTTHREADED) on startup and CoUninitialize on finish.