🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

creating TADOstoredProc inside thread context

#5742
From: Ozan Kilicoglu
Date: Thu, 01 Mar 2001 20:06
15 lines
1395 bytes
when I try to execute...

TADOStoredProc *adoSP = new TADOStoredProc(NULL);

this line of code from the thread's context ( in TThread->Execute()
method ).
its ended with an error message:
EOleSysError... 'CoIn�tialize has not been called'

Of course, it works when called from  Thread's constructor ( which belongs
to App. context.) However, I don't want to use this solution because I want
each thread to manage its own TADOStoredProc connection. How can I execute
this line from within thread's context? if I can not, what should I do?

thanks in advance
Technical Details
Message-ID: <3a9ea96b_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.tele.dk!130.133.1.3!fu-berlin.de!news.bnb-lp.com!bornews.borland.com!dnews!160.75.71.15

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,7247137ae13bcf7b,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-03-01 12:10:08 PST
From: "Ozan Kilicoglu" <ozan.kilicoglu@eee.deu.edu.tr>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: creating TADOstoredProc inside thread context
Date: Thu, 1 Mar 2001 22:06:58 +0200
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 160.75.71.15
Message-ID: <3a9ea96b_2@dnews>
X-Trace: 1 Mar 2001 11:56:27 -0800, 160.75.71.15
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.tele.dk!130.133.1.3!fu-berlin.de!news.bnb-lp.com!bornews.borland.com!dnews!160.75.71.15