[fxruby-users] FXSettings problem

Jannis Pohlmann 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)
>             super()
>             self.mFile = aFile
>             self.mDefaults = FXSettings.new
>         end
>     end
>
> Hope this helps,
>
> Lyle

...

Thanks very much, what a stupid mistake!

Regards,
Jannis (still banging his head against the table)


More information about the fxruby-users mailing list