From: Jeff Mitchell Date: 2004-06-10T09:34:05+09:00 Subject: Re: spikes in memory usage --- Jeff Mitchell wrote: > VALUE rb_myclass_initialize( VALUE self, VALUE size ) > { > struct MyStruct* data; > Data_Get_Struct(self, struct MyStruct, data) ; > data->stuff = (char*)malloc(NUM2LONG(size)*sizeof(char)) ; > return self ; > } Sorry to bother you. The problem is gone when I use ALLOC_N. __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/