From: Stephyn B. <ste...@co...> - 2008-08-19 14:51:57
|
Greg, I gave your suggestion a try. require 'rubygems' require 'osx/cocoa' require 'rexml/document' Interestingly, this delayed the crash until I actually called exportModel whereas before the application crashed instantly. I tried using rexml via require 'rexml/document' in a toy application I had sitting around and everything worked out just fine. Because I am had similar issues with builder (although at seemingly random places), this leads me to believe that there is something wrong with this project....but just what that could be completely escapes me. The only clue I have is the backtrace--which isn't very useful to me. Can a project file get corrupted? Has anyone observed a similar behavior? Cheers, Steve On Aug 19, 2008, at 7:35 AM, rub...@li... wrote: > Message: 1 > Date: Mon, 18 Aug 2008 17:11:40 -0700 > From: Gregory Clarke <gr...@in...> > Subject: Re: [Rubycocoa-talk] problems when "require"-ing libraries or > gems > To: rub...@li... > Message-ID: > <6D6...@in...> > Content-Type: text/plain; charset="us-ascii" > > Hi Steve, > > You might need a require 'rubygems' before the require 'rexml/ > document'. Certainly that's true for Builder. I've used REXML in my > latest RubyCocoa projects, along with other gems, and require > 'rubygems' is my first line. > > Hope this helps, > Greg |