Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Exception
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kjetil Thue  
View profile  
 More options Mar 16 2000, 3:00 am
Newsgroups: borland.public.cppbuilder.database.desktop
From: Kjetil Thue <thu...@dph.no>
Date: 2000/03/16
Subject: Exception
Hello
I have a problem with INSERT . When duplicate "primary key" values a
error is generated and the application crases. I want to catch this in
an exception. I have tried this:

try
    {
    Query1->SQL->Clear();
    Query1->SQL->Add("INSERT INTO tbl_message VALUES(" + msgId + ", \'"
        + timeStamp + "\', " + Priority + ", " + DbRecP + ", " + DbSendP
+ ", "
        + RecId + ", " + SendId + ", \'" + MainMsg + ") ");
    Query1->ExecSQL();
    }
    catch (const EDatabaseError &DatabaseError)
    {
        ShowMessage(DatabaseError.Message.c_str());
    }

This catches the DatabaseError but the application stil crashes. How can
I change this. I don't want my application to crash?

Thanks
Kjetil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thorsten Schmidt  
View profile  
 More options Mar 18 2000, 3:00 am
Newsgroups: borland.public.cppbuilder.database.desktop
From: "Thorsten Schmidt" <thorsten.schm...@topmail.de>
Date: 2000/03/18
Subject: Re: Exception

> This catches the DatabaseError but the application stil crashes. How
can
> I change this. I don't want my application to crash?

Where does the application crash, while executing the catch block or
after the catch block?

Thorsten.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »