[wxruby-users] GridTableBase
Alex Fenton
alex at pressure.to
Mon Jan 28 17:41:08 EST 2008
Hi Franz
Irlweg, Franz (ZNT) wrote:
> I'm running Windows XP and i always get the error:
> *in `set_table': in method 'SetTable', argument 2 of type
> 'wxGridTableBase *' (ObjectPreviouslyDeleted)*
...
> class MyGridTableBase < GridTableBase
>
> def initialize rowObjs, objType
> @objType = objType
> @rowObjs = rowObjs
> @colNames = ["aa", "bb"]
> end
You need to call super() in your constructor. Sorry the (SWIG-generated)
exception isn't very informative, but it's trying to say that the
underlying C++ object hasn't been initialised.
alex
More information about the wxruby-users
mailing list