From: Shigeo Kobayashi Date: 2000-11-15T12:53:24+09:00 Subject: [ruby-talk:6376] Re: Is xfree() the proper counter part to ALLOC_N() or ALLOC() ? Hi John, ----- Original Message ----- From: "John Small" Subject: [ruby-talk:6369] Is xfree() the proper counter part to ALLOC_N() or ALLOC() ? > If I use free() I get a runtime exception. Yes(as far as you are using MSVC),the reason is the same as Perl's. See http://www.perl.com/CPAN/authors/id/D/DO/DOUGL/PerlCRT-README-2.05.txt As same as Perl,you can use RubyCRT.Dll instead of MSVCRT.DLL ftp://ftp.netlab.co.jp/pub/lang/ruby/pc/RubyCRT-VC60SP4.zip > Looking in ruby.h I see xfree() which seems to work okay, however I don't > read anything in readme.ext or Programming Ruby that indicates that this is > the preferred method. Yes,if you prefer using MSVCRT.DLL,you must use xfree(). shigeo@tinyforest.gr.jp