From: Tridib Bandopadhyay Date: 2011-08-03T11:03:07+09:00 Subject: Re: Help in Pointer > You can inform the garbage collector of your pointer through > Data_Wrap_Struct and Data_Make_Struct. From README.EXT: > >> function to free the pointer allocation. If this is -1, the pointer >> will be just freed. The functions mark and free will be called from >> garbage collector. > > Does this answer your questions? > > For further reading: > > http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/README.EXT?view=markup So does it delete only the pointer or the pointer with the data its pointing? Its not clear to me. Actually I want to perform memory leak. Which the garbage collector will not be notified of but I will be of the memory leak and its source of leak. Tridib -- Posted via http://www.ruby-forum.com/.