ts wrote: >>>>>>"I" == Iain Dooley <idoo4002 / mail.usyd.edu.au> writes: > > > I> because this code is being edited at runtime, if the user mistypes the > I> name of a child for example, then tests the code, i want an error to pop > I> saying "there was an error in your code" or something. at the moment, it > I> dies like this: > > I> matt_test.rb:9: [BUG] Segmentation fault > I> ruby 1.8.2 (2004-12-25) [i386-freebsd5] > > Do it do the same thing when the script is called directly (outside the > embedded application) ? > > If yes, it's a bug in this extension and it must be fixed. well, actually the script doesn't do anything outside the application!! it is just a class definition for receiving signals from a UI built in Qt Designer. this is part of Qt/Ruby bindings, so obviously what's happening is that, because @parent.child("someName") returns nil, trying to access this is causing a segmentation fault. so @parent.child("someName").text is trying to call a function on an object that doesn't exist. does that sound like it is a bug in Qt Ruby bindings? cheers iain