mail-archives/gtk-sharp-list/2002-September/000289.html

89 строки
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] IDisposable
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:michael%40ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="000295.html">
<LINK REL="Next" HREF="000296.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] IDisposable
</H1>
<B>Michael Meeks
</B>
<A HREF="mailto:michael%40ximian.com"
TITLE="[Gtk-sharp-list] IDisposable">michael@ximian.com
</A><BR>
<I>04 Sep 2002 14:32:33 +0100</I>
<P><UL>
<LI> Previous message: <A HREF="000295.html">[Gtk-sharp-list] IDisposable
</A></li>
<LI> Next message: <A HREF="000296.html">SV: [Gtk-sharp-list] IDisposable
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#289">[ date ]</a>
<a href="thread.html#289">[ thread ]</a>
<a href="subject.html#289">[ subject ]</a>
<a href="author.html#289">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hi Mike,
On Wed, 2002-09-04 at 06:50, Mike Kestner wrote:
&gt;<i> If anyone detects major brokeness with the resulting behavior, don't be
</I>&gt;<i> bashful.
</I>
I don't quite understand what you're proposing; but here's how it
should work IMHO [ YMMV etc. ].
When you invoke IDispose's dispose method it should map to:
g_object_run_dispose (proxy);
For a GObject and
gtk_object_destroy (proxy)
for a GtkObject. The semantic difference being small.
Since GObject was designed for garbage collection / disposal in this
way, I would leave it's reference count untouched; either keeping 1
reference to it - or ref/decing it as you pass it around.
Otherwise you'll have major problems; the sound of poking with the
underlying ref count is pretty ugly indeed [ but perhaps I
mis-understood you ].
HTH,
Michael.
--
<A HREF="mailto:mmeeks@gnu.org">mmeeks@gnu.org</A> &lt;&gt;&lt;, Pseudo Engineer, itinerant idiot
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="000295.html">[Gtk-sharp-list] IDisposable
</A></li>
<LI> Next message: <A HREF="000296.html">SV: [Gtk-sharp-list] IDisposable
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#289">[ date ]</a>
<a href="thread.html#289">[ thread ]</a>
<a href="subject.html#289">[ subject ]</a>
<a href="author.html#289">[ author ]</a>
</LI>
</UL>
</body></html>