BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Exceptions raised in OnBeforeUpdate lost

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Martin Stephenson
Guest





PostPosted: Sun Apr 11, 2004 9:44 pm    Post subject: Exceptions raised in OnBeforeUpdate lost Reply with quote



I have written my own Provider.OnBeforeUpdate event to generate SQL. If I
get an exception raised when generating the SQL (I was getting cannot
convert Null to AsString or something similar) then the event was failing,
no further records were being processed by the event but the exception was
being lost. I have solved the error by using VarIsNull but why is the
exception not being passed up ?

Martin


Back to top
David M
Guest





PostPosted: Tue Apr 13, 2004 7:28 pm    Post subject: Re: Exceptions raised in OnBeforeUpdate lost Reply with quote



On Sun, 11 Apr 2004 22:44:00 +0100, "Martin Stephenson"
<w_orbit (AT) hotmail (DOT) com> wrote:

Quote:
I have written my own Provider.OnBeforeUpdate event to generate SQL.

There is no OnBeforeUpdate event handler. Which event handler have
you hooked ?

BeforeUpdateRecord,
or
OnUpdateData ?


David M





Back to top
Martin Stephenson
Guest





PostPosted: Thu Apr 15, 2004 6:53 pm    Post subject: Re: Exceptions raised in OnBeforeUpdate lost Reply with quote



Oops. sorry, event is BeforeUpdateRecord

Thats what comes of writing the post from home without having the code in
front of me !

Thanks
Martin



"David M" <borlandnewsWITHNO (AT) SPAMmoorhouse (DOT) net.nz> wrote

Quote:
On Sun, 11 Apr 2004 22:44:00 +0100, "Martin Stephenson"
[email]w_orbit (AT) hotmail (DOT) com[/email]> wrote:

I have written my own Provider.OnBeforeUpdate event to generate SQL.

There is no OnBeforeUpdate event handler. Which event handler have
you hooked ?

BeforeUpdateRecord,
or
OnUpdateData ?


David M







Back to top
Dave Rowntree
Guest





PostPosted: Fri Apr 16, 2004 8:47 am    Post subject: Re: Exceptions raised in OnBeforeUpdate lost Reply with quote

"Martin Stephenson" <w_orbit (AT) hotmail (DOT) com> wrote:
Quote:
Oops. sorry, event is BeforeUpdateRecord

CDS.ApplyUpdates does not re-raise exceptions raised at the DSP. They
are surfaced as update errors in the CDS.OnReconcileError event. Look
in help for CDS.OnReconcileError event. It includes an example of how
you can use the supplied HandleReconcileError dialog.
--
Dave Rowntree

Back to top
Fabio Dell'Aria
Guest





PostPosted: Thu May 06, 2004 8:47 am    Post subject: Re: Exceptions raised in OnBeforeUpdate lost Reply with quote

Dave Rowntree <daver (AT) spam_off (DOT) brookswood.co.uk> wrote

Quote:
"Martin Stephenson" <w_orbit (AT) hotmail (DOT) com> wrote:
Oops. sorry, event is BeforeUpdateRecord

CDS.ApplyUpdates does not re-raise exceptions raised at the DSP. They
are surfaced as update errors in the CDS.OnReconcileError event. Look
in help for CDS.OnReconcileError event. It includes an example of how
you can use the supplied HandleReconcileError dialog.

You can try EurekaLog ([url]www.eurekalog.com)[/url].

EurekaLog is an add-in tool that gives to your application (GUI,
Console, Web, etc.) the ability to catch every exception (even those
raised by memory leaks) and every infinite-loops/deadlock bugs,
generating a detailed log of call stack (with unit, class, method and
line #), showing and sending it back to you via email.
--
Best regards...

Fabio Dell'Aria.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.