🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3018

Re: TADOXXX in Win32 Service

#3018
From: Max Luzin
Date: Thu, 30 Jan 2003 18:00
17 lines
1632 bytes
Hi!
I don't checked it but who knows...

Try to initialize the ADO connection not in OnStart, but rather in OnExecute
event, because OnStart event generated at the moment of starting service NOT
when all internal structures already created.

Try to increase the Connection Timeout attribute of ADOConnection also...

Max

"Vistac" <vistac@ms10.hinet.net> wrote in message
news:3e3806d9@newsgroups.borland.com...
> but when I try to active TADOConnection connection in TSevice OnStart
Event,
> there will have some problem occour, the exception message like
> "CoInitialize not run ...",
Technical Details
Message-ID: <3e3967b2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3e3806d9@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,da8c0e778a45fde0
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-01-30 10:10:36 PST
Reply-To: "Max Luzin" <maksim.luzin@wsy.lt>
From: "Max Luzin" <maksim.luzin@wsy.lt>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e3806d9@newsgroups.borland.com>
Subject: Re: TADOXXX in Win32 Service
Date: Thu, 30 Jan 2003 20:00:41 +0200
Lines: 20
Organization: Western Shipyard
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.59.13.100
Message-ID: <3e3967b2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1043949490 212.59.13.100 (30 Jan 2003 09:58:10 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail