Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Where have you been all my life! I found the answer I needed in seconds..."

Geography

Where in the world do Tek-Tips members come from?

EExternalExecption with message 'External exception C0000025'

chelsea11 (Programmer)
4 Mar 11 12:20
hello

i use c++ borland 5.0. I have application which connects to remote db2 database. The network is removed during execution of statements by removing the network cable. The try block into application catch the exceptio and the application do not crash. But when i close the application i get the next exceptions:
1. EOLeException with message CLI01106E Connection is closed SQLSTATE=08003

2. class EExternalExecption with message 'External exception C0000025'

what can be the reason for this problems ?

please help  
2ffat (Programmer)
4 Mar 11 16:46
I'm guessing that something isn't closing correctly. Look carefully at the catch statements and see if you forgot to close a connection or something.

 

James P. Cottingham
I'm number 1,229!
I'm number 1,229!

chelsea11 (Programmer)
4 Mar 11 19:35
it is not possible the connection to be closed correct because the cable is unpluged ... if i close connection on unpluged cable it will rise new exception  
2ffat (Programmer)
5 Mar 11 16:04
Just because the cable is unplugged that doesn't mean the connection is closed. Why would closing the connection raise an exception?

What could be happening is that when you close the program, you have an open connection or an "object" still open. You need to close and delete the connection/object. Without seeing the code, I can't really say what is happening.



 

James P. Cottingham
I'm number 1,229!
I'm number 1,229!

chelsea11 (Programmer)
6 Mar 11 7:48
try{                                                     
                              ADO_DM->Target_Query->ExecSQL();       
                           }
                                catch( Exception& t ) {

                                  Event_Log_Obj.LogEvent("error: "+tgtnumber+"): "+t.Message +" Çàÿâêà: "+ stmnt );
                              ADO_DM->Source_Connection->RollbackTrans();
                              ADO_DM->Target_Connection->Cancel();
                              return;

                                }
                            catch (EOleException &t) {
                              Event_Log_Obj.LogEvent("error "+t.Message +" Çàÿâêà: "+ stmnt );
                              ADO_DM->Source_Connection->RollbackTrans();
                              ADO_DM->Target_Connection->Cancel();
                              return;
                           } catch(EADOError &f) {
                              Event_Log_Obj.LogEvent("error"+ stmnt);
                              ADO_DM->Source_Connection->RollbackTrans();
                              return;
                           } catch(Exception &e) {
                              Event_Log_Obj.LogEvent("error"+ stmnt);
                              ADO_DM->Source_Connection->RollbackTrans();
                              return;
                           } catch (...) {
                              Event_Log_Obj.LogEvent("error: "+ stmnt);
                              ADO_DM->Source_Connection->RollbackTrans();
                              return;
                           }

this it the statemts which i catch the exceptions  
2ffat (Programmer)
7 Mar 11 8:02
This will catch exceptions when you try to executed a query. It won't catch an exception if you are trying to close a form with an open connection. Try closing all connections on the form's ONCLOSE method and see what happens.

James P. Cottingham
I'm number 1,229!
I'm number 1,229!

chelsea11 (Programmer)
9 Mar 11 17:59
ok, i will try  

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close