From: Jonathan W. <co...@co...> - 2004-08-10 11:36:40
|
On Thu, Aug 05, 2004 at 11:16:43AM -0400, Liu, Yigong wrote: > Hi there, hi again, yigong > Thanks for the reply. > > Another question, I tried simple1 (the first example) and I have no > database server running locally, so it fails. However, it will crash the > whole program, not close down gracely. I check simple1.cc, although > there are catch statement for exceptions and I also add catch(...) to > catch all other exceptions, it still crashes. Does exception-handling > work in mysqlcppapi? It works for me - if the connection is not opened an exception is thrown and caught by the first catch() block. Have you debugged the program to see where the crash is? It could be before the exception is even thrown, or it could be a problem with exception-handling in your environment. If you can send a stacktrace I might be able to figure it out. jon -- "Nothing is true. Everything is permissible." - Hassan i Sabbah |