From: Joel VanderWerf Date: 2009-09-15T01:43:21+09:00 Subject: Re: Using Data_Make_Struct for incomplete type Erik Lindblad wrote: > However there is one problem left. All the stuff above is only > possible within the wrapper C code. Once the library call exits and I > am back in Ruby land, the wrapped struct (SomeOpaqueStruct in your > example) is freed and I get a segmentation fault. I realize this is > because of how the wrapped library works but do you know of any way to > prevent this or how to copy the struct, thereby saving it for the > afterworld? Ouch. Bad library, bad! -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407