🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cancelling delete in BeforeDelete events ???

#5673
From: J. R. Antley
Date: Wed, 07 Mar 2001 10:32
54 lines
2086 bytes
Hi Sandi,

You are right to worry about this.

At the time of this writing known to me, your only option is to derive your
own class from TADOTable and hook the virtual method Post.  I have some code
which does this; contact me by mail if interested.

JR

"Sandi Wijaya" <sandiwijaya@yahoo.com> wrote in message
news:3aa5b03f_1@dnews...
> Hi, Mr. Antley
>
> I have tried that. It's working but When I tried to Continue the process,
> the application return "access violation" error message. And then I tried
to
> the created executable application file  there's no return access
violation
> message.
>
> I am worried about that it will make something stuck in memory. Is it
normal
> or not for access violation message in Aborting process ?
>
> Thank you.
>
>
> "J. R. Antley" <jantley@phoenixdsl.com> wrote in message
> news:983u0o$ik06@bornews.inprise.com...
> > Hi Sandi,
> >
> > There is an horrible way to do it:
> >
> > if (DeleteAllowed() == false)
> > {
> >   Abort();
> > }
> >
> > Under the covers, this throws an exception and somebody catches it...
It
> > sux, but it will work.
> >
> > JR
> >
>
>
>
>
>
>
>
>
>
Technical Details
Message-ID: <984uva$ldi3@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!skynet.be!newsfeed01.tsnz.net!bornews.borland.com!not-for-mail
References: <3aa4a015_1@dnews> <983u0o$ik06@bornews.inprise.com> <3aa5b03f_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,a796c25e92fcc869
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-03-07 01:36:11 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!skynet.be!newsfeed01.tsnz.net!bornews.borland.com!not-for-mail
From: "J. R. Antley" <jantley@phoenixdsl.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Cancelling delete in BeforeDelete events ???
Date: Wed, 7 Mar 2001 02:32:27 -0800
Organization: Another Netscape Collabra Server User
Lines: 56
Message-ID: <984uva$ldi3@bornews.inprise.com>
References: <3aa4a015_1@dnews> <983u0o$ik06@bornews.inprise.com> <3aa5b03f_1@dnews>
NNTP-Posting-Host: 64-6-178-230.den1.phoenixdsl.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200