From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-10T12:02:37+09:00 Subject: Re: embedding ruby with swig On Thu, 10 Apr 2003 05:43:26 +0200, Simon Strandgaard wrote: > On Wed, 09 Apr 2003 17:56:52 +0000, Steve Hart wrote: > > Yes, its correct that "scriptObj" needs to be marked during GC. Damn.. I am wrong here.. sorry You don't need to do any marking at all. The instance-owner of GMScript is main.c, thus its not an instance which is being managed by ruby, therefore no rb_mark should be done. Instead you must keep track of your "scriptObj"'s, either by doing rb_gc_registister_adress/rb_gc_unregister_adress or by putting them in a global array/hash. -- Simon Strandgaard