Hello, 

I've got a strange problem. I'd like to manually increase the ref count
of a Glib.Object. The exact opposite to Unref(); Is it somehow possible,
without digging to much? 

The reason I need this is: a bug in gst-sharp (I suppose). There is a
function Gst.Bin.Remove(Gst.Bin Bin1) that removes Bin1 from the calling
Bin. In the gstreamer api this function is described as follows:

*** gst_bin_remove () :
"Remove the element from its associated bin, unparenting it as well.
Unparenting the element means that the element will be dereferenced, so
if the bin holds the only reference to the element, the element will be
freed in the process of removing it from the bin. If you want the
element to still exist after removing, you need to call gst_object_ref
before removing it from the bin."

And this is exactly what happens. After the Remove (in mono) the Bin
that is to be removed is deallocated. This is not what I want. 


-- 
Michał Dominik K.
[EMAIL PROTECTED]
www.mdk.org.pl

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to