From: Allison N. <dem...@ma...> - 2008-05-19 15:31:46
|
I have seen the same error running Rails apps on my Mac. I think this is an ActiveRecord issue, not a RubyCocoa issue... On Monday, May 19, 2008, at 03:49PM, "Pim Snel" <pi...@li...> wrote: >Hello, > >I've created an RubyCocoa app which uses activerecord and cocoa- >bindings to connect to a mysql database. This works perfect but now >I've added a SSH tunnel so that a remote database can be used. The >application creates the tunnel before creating the db-connection and >because this ssh tunnel often gets reset by peer, the app, ofter >creates a new database connection. > >The problem is: when the window which contains the bindings and is >populated wth query data is open but the ssh tunnel is broken the >complete application crashes with the error: Mysql::Error: Lost >connection to MySQL server during query. > >The reason of the crash is understandable but how can I create an >exception for it. Can exceptions be added in Interface Builder? > >Regards, >Pim Snel |