From: Hans Mackowiak Date: 2011-08-03T16:45:19+09:00 Subject: Re: Help in Pointer >Data_Wrap_Struct(klass, mark, free, ptr) if you use Data_Wrap_Struct(klass, 0, free, ptr) or Data_Wrap_Struct(klass, 0, -1, ptr) the pointer and the data will be freed if you use Data_Wrap_Struct(klass, 0, 0, ptr) the pointer will not be deleted or freed the problem is: sometimes its bad if the GC deleted objects if there are stored in other c(++) objects (like an window manager which holds the windows) this way you need Data_Wrap_Struct(klass, 0, 0, ptr) PS: i does not realy know that mark do, so i does not use it -- Posted via http://www.ruby-forum.com/.