From: Takaaki Tateishi Date: 2005-12-28T22:20:13+09:00 Subject: Re: dl/loader ptr issue Brian Caswell wrote: > However, the function I'm wrapping doesn't seem to work as I > expect it to. > > extern "int blob_read(void *blob, void *buf, int size)" ... > def read (blob, len) > ptr = DL.malloc(len) > ret = Dnet.blob_read(blob, ptr.ref, len) > return ret.to_s > end How about using "ptr" instead of "ptr.ref"? -- Takaaki Tateishi