This is a multi-part message in MIME format.

------=_NextPart_000_02E7_01C16EE0.AB3CC220
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_02E8_01C16EE0.AB3CC220"


------=_NextPart_001_02E8_01C16EE0.AB3CC220
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am creating ruby objects from C++ and need to know how to tell the =
ruby garbage collector that I don't want them collected.  =
rb_global_variable variable would look to be what I need however there =
doesn't seem to be a function to tell the garbage collector that I have =
finished with the object and it can collect it.

Also I am creating the objects using   myobject =3D =
rb_eval_string("Myclass.new()") , is this right way to do this or is =
there some cleaner way?

Thanks




------=_NextPart_001_02E8_01C16EE0.AB3CC220
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am creating ruby objects from C++ and =
need to=20
know how to tell the ruby garbage collector that I don't want them=20
collected.&nbsp; </FONT><FONT face=3DArial size=3D2>rb_global_variable =
variable=20
would look to be what I need however there doesn't seem to be a function =
to tell=20
the garbage collector that I have finished with the object and it can =
collect=20
it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also I am creating the objects=20
using&nbsp;&nbsp;&nbsp;myobject =3D =
rb_eval_string("Myclass.new()")&nbsp;, is this=20
right way to do this or is there some cleaner way?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>

------=_NextPart_001_02E8_01C16EE0.AB3CC220--

------=_NextPart_000_02E7_01C16EE0.AB3CC220
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII6jCCAogw
ggHxoAMCAQICAwUraTANBgkqhkiG9w0BAQIFADCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdl
c3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsT
FENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAw
MC44LjMwMB4XDTAxMDcwOTIyMjQyMVoXDTAyMDcwOTIyMjQyMVowSTEfMB0GA1UEAxMWVGhhd3Rl
IEZyZWVtYWlsIE1lbWJlcjEmMCQGCSqGSIb3DQEJARYXcmFscGgubWFzb25AdGVsb2dpcy5jb20w
gZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALu1srM8OOgNUMoigvNmihzsJXCfvY2n9hL65rKd
O/CxPTI4KAVYUbzwydLkEVwJt/w1y/7jY4wKhsJ3Alfb8eYaNExtqx0jmPcrdmi9bIAvt9C0nV3H
WgkBjflKo6yZ2e//XTjE6cCAWX90VaoQkE24xwTQHZk6JNoO8+VOg++dAgMBAAGjNDAyMCIGA1Ud
EQQbMBmBF3JhbHBoLm1hc29uQHRlbG9naXMuY29tMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEC
BQADgYEACQ4AmyU5KZSJdDsVGOBIMdaPO9WFFbMbHIV/VoR39Lo2mZivetU5SN8bSvtGqR6sEtcf
hFqS74953nqkoLTi94+lA8sczaDs8dBVdnAYBA0mqLDqOd9FDofF2L1RYwZueBJ6ej6U/WOphOud
phIMy2yJfvhYEZBEDX7rqqQnM0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