[fxruby-users] FXSettings problem
info at sten-net.de
Tue Apr 12 19:01:45 EDT 2005
Lyle Johnson schrieb:
> On Apr 12, 2005, at 4:56 PM, Jannis Pohlmann wrote:
>> When I call reg.Parse now, the ruby interpreter prints out
>> ./Registry.rb:26:in `parseFile': This FXSettings * already
>> released (RuntimeError)
>> Does anyone see my - or FXRuby's - mistake?
> Yes; you need to call the base class initialize() method in your
> subclass' initialize() method, e.g.
> class Registry < FXSettings
> def initialize(aFile)
> self.mFile = aFile
> self.mDefaults = FXSettings.new
> Hope this helps,
Thanks very much, what a stupid mistake!
Jannis (still banging his head against the table)
More information about the fxruby-users