From: Pim S. <pi...@li...> - 2008-05-19 17:13:05
|
Op 19 mei 2008, om 17:30 heeft Allison Newman het volgende geschreven: > I have seen the same error running Rails apps on my Mac. I think > this is an ActiveRecord issue, not a RubyCocoa issue... > I understand the issue and this is not an bug of ActiveRecord. The SSH tunnel crashes and thus the AR-connection is lost. But how can I rescue my ActiveRecord Session? > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |