[fxruby-users] FXSettings problem
Lyle Johnson
lyle at knology.net
Tue Apr 12 18:36:04 EDT 2005
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
More information about the fxruby-users
mailing list