From: Tridib Bandopadhyay Date: 2011-08-07T14:08:56+09:00 Subject: Re: Help in Pointer Hans Mackowiak wrote in post #1014677: >>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 So will it make Memory Leak..!!!! > > > 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 I need this to happen.. So that i can implement.. Manual memory deallocation..!!! ANd secondly.. where should i Put this code in.. on which function?? Tridib -- Posted via http://www.ruby-forum.com/.