From: Jan Bernhardt Date: 2003-05-15T17:32:42+09:00 Subject: Re: Embedding/GC/heap corruption problem On Thu, 15 May 2003 02:04:09 +0200, Simon Strandgaard wrote: > I saw the line "#include " and just assumed DLL == windows :-) Eventually this will have to run under Windows - but since most dedicated Half-Life servers are running under Linux (and of course mine too) I don't care yet. > Are you on-the-fly loading the ruby library ? That is right. Half-Life modifications are loaded from dynamic libraries. I don't see any problems with that - am I overseeing anything here? I link the Ruby interpreter statically to my dynamic library. But I'm afraid that those people who could help here, don't follow this thread anymore :( > I have no experience with this yet.. is it straight ahead ? Yeah, more or less. The way my extension hooks up to the game engine is not very complicated and if there isn't a principal problem with embedding Ruby in a dynamic library, binding the native parts to Ruby is straight forward. Of course I could cause heap corruptions when I treat engine data in a wrong way or make errors when calling engine functions. > 'goto bed', replies might be delayed some hours. I did so too. Hope you (and all the others) had a pleasant sleep. - Jan.