Article View: borland.public.cppbuilder.database.ado
Article #5820Re: BOF/EOF Again
From: Rick Golden
Date: Wed, 24 Jan 2001 14:57
Date: Wed, 24 Jan 2001 14:57
70 lines
2537 bytes
2537 bytes
Yes,
I'm able to do that, but it is not a Stored proc, it is a TADORecordset....
Just to be sure the patch was installed properly,
Open the file adodb.pas (in ($BCB)\Source\vcl)
and check the InternalClose procedure..
it should look like that
BindFields(False);
if DefaultFields then DestroyFields;
FIndexFields.Clear;
DestroyLookupCursor;
if stOpen in RecordsetState then
begin
if FEventsID > 0 then
begin
OleCheck(ConnectionPoint.UnAdvise(FEventsID));
FEventsID := 0;
end;
end;
FFindCursor := nil;
FRecordsetObject := nil;
FFilterGroup := fgUnassigned;
FDetailFilter := '';
SetConnectionFlag(cfOpen, False);
and not
BindFields(False);
if DefaultFields then DestroyFields;
FIndexFields.Clear;
DestroyLookupCursor;
if stOpen in RecordsetState then
begin
Recordset.CancelUpdate; **** HERE CAUSED
THE PROBLEM ****
if FEventsID > 0 then
begin
OleCheck(ConnectionPoint.UnAdvise(FEventsID));
FEventsID := 0;
end;
Recordset.Close;
end;
FFindCursor := nil;
FRecordsetObject := nil;
FFilterGroup := fgUnassigned;
FDetailFilter := '';
SetConnectionFlag(cfOpen, False);
Hope it helps
Rick
David Latham <dlatham@qwest.net> wrote in message news:3a6e1ec5$1_2@dnews...
> Hi Rick,
>
> I did apply that patch and continued to get the error even after the
patch.
> Are you able to set the Active property to false on an inactive, empty
> dataset without generating the error?
>
> Thanks for the reply,
>
> Dave
>
>
>
>
Technical Details
Message-ID:
<94mqhs$ach1@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailReferences:
<3a6d8bc9$1_1@dnews> <94k3t5$gc84@bornews.inprise.com> <3a6e1ec5$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,d77622e2033de76b X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-01-24 06:58:57 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: "Rick Golden" <GoldenRick@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: BOF/EOF Again Date: Wed, 24 Jan 2001 09:57:40 -0500 Organization: Gold Lines: 73 Message-ID: <94mqhs$ach1@bornews.inprise.com> References: <3a6d8bc9$1_1@dnews> <94k3t5$gc84@bornews.inprise.com> <3a6e1ec5$1_2@dnews> Reply-To: "Rick Golden" <GoldenRick@hotmail.com> NNTP-Posting-Host: dmr-public-005.mtl.dmr.ca X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300