[gtkmm] Gtkmm-forge digest, Vol 1 #446 - 11 msgs



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-admin lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs.


Today's Topics:

   1. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
   2. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
   3. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
   4. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
   5. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
   6. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
   7. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
   8. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
   9. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
  10. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)
  11. [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area () (bugzilla-daemon widget gnome org)

--__--__--

Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: murrayc usa net
Date: Wed, 25 Jun 2003 13:26:28 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:11:54 2003
+++ shadow/114568.tmp.3205	Wed Jun 25 13:26:28 2003
@@ -1224,6 +1224,20 @@
 
 Well, if you delete it now then it will be double-delete when I fix
 the bug. I'm interested, in what kind of application is the occasional
 leak based on GUI interaction such a critical problem?
 
 re. dispose: Maybe. I will investigate. It has worked so far elsewhere.
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:26 -------
+We have a application where we pop up many Gtk::Dialogs for data 
+input.
+
+The application is supposed to run several hours, maybe days or weeks 
+or even month (I actually dont believe that, but my boss does)
+
+And in the gtkmm 2.0 there was only a little memory leak whereas my 
+collegue (she found the leak originally) said that with gtkmm2.2 the 
+memory leak was even bigger.
+
+I have to ask her how much memory it actually was.
+



--__--__--

Message: 2
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: murrayc usa net
Date: Wed, 25 Jun 2003 13:33:04 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:26:28 2003
+++ shadow/114568.tmp.5142	Wed Jun 25 13:33:04 2003
@@ -1238,6 +1238,11 @@
 And in the gtkmm 2.0 there was only a little memory leak whereas my 
 collegue (she found the leak originally) said that with gtkmm2.2 the 
 memory leak was even bigger.
 
 I have to ask her how much memory it actually was.
 
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:33 -------
+I will try that "g_signal_connect" once,
+if it doesn't work I'll give up.
+



--__--__--

Message: 3
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: elke meier sysde eads net, murrayc usa net
Date: Wed, 25 Jun 2003 13:43:26 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:33:04 2003
+++ shadow/114568.tmp.9349	Wed Jun 25 13:43:26 2003
@@ -9,13 +9,13 @@
 Priority: Normal
 Component: general
 AssignedTo: gtkmm-forge lists sourceforge net                            
 ReportedBy: harald hopfes hopfes sysde eads net               
 TargetMilestone: ---
 URL: 
-Cc: murrayc usa net
+Cc: elke meier sysde eads net,murrayc usa net
 Summary: Memory leak in Dialog::get_vbox() and get_action_area ()
 
 The following program causes memory leaks on each dialog open/close.
 The valgrind leak-check for one open/close and 10 open/close is appended 
 below.
 
@@ -1243,6 +1243,60 @@
 
 
 ------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:33 -------
 I will try that "g_signal_connect" once,
 if it doesn't work I'll give up.
 
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:43 -------
+Huuuuuuurrrrrrrraaaaaaayyyyyyy!
+It worked!!!
+
+##################################################################
+void ObjectBase::tmp_on_destroyed(GObject* object, gpointer data)
+{
+  ObjectBase::destroy_notify_callback_(data);
+}
+
+void ObjectBase::_set_current_wrapper(GObject* object)
+{
+  // Store a pointer to this wrapper in the underlying instance, so 
+that we
+  // never create a second wrapper for the same underlying instance.  
+Also,
+  // specify a callback that will tell us when it's time to delete 
+this C++
+  // wrapper instance:
+
+  if(object)
+  {
+    if(!g_object_get_qdata(object, Glib::quark_))
+    {
+#ifdef DEF_DEBUG_REFCOUNTING
+      g_warning("ObjectBase::_set_current_wrapper: g_signal_connect
+(destroy_notify_callback_)\n");
+      g_warning("  type=%s\n", G_OBJECT_TYPE_NAME(object));
+#endif
+      g_signal_connect(G_OBJECT(object), "destroy",
+		       G_CALLBACK(tmp_on_destroyed), this);
+
+      g_object_set_qdata_full(object, Glib::quark_, this, 
+&destroy_notify_callback_);
+    }
+    else
+    {
+      g_warning("This object, of type %s, already has a wrapper.\n"
+                "You should use wrap() instead of a constructor.",
+                G_OBJECT_TYPE_NAME(object));
+    }
+  }
+  else
+    {
+#ifdef DEF_DEBUG_REFCOUNTING
+      g_warning("ObjectBase::_set_current_wrapper: object is NULL\n");
+#endif
+    }
+}
+
+##################################################################
+
+



--__--__--

Message: 4
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: elke meier sysde eads net, murrayc usa net
Date: Wed, 25 Jun 2003 13:48:00 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:43:26 2003
+++ shadow/114568.tmp.11838	Wed Jun 25 13:48:00 2003
@@ -1297,6 +1297,11 @@
     }
 }
 
 ##################################################################
 
 
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:47 -------
+Created an attachment (id=17764)
+gtk_dialog_leak.txt
+



--__--__--

Message: 5
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: elke meier sysde eads net, murrayc usa net
Date: Wed, 25 Jun 2003 13:48:51 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:48:00 2003
+++ shadow/114568.tmp.12253	Wed Jun 25 13:48:51 2003
@@ -1302,6 +1302,14 @@
 
 
 ------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:47 -------
 Created an attachment (id=17764)
 gtk_dialog_leak.txt
 
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:48 -------
+:-(
+But now the GTk::Dialog is not destroyed:
+
+See:
+http://bugzilla.gnome.org/showattachment.cgi?attach_id=17764
+



--__--__--

Message: 6
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: murrayc usa net, elke meier sysde eads net
Date: Wed, 25 Jun 2003 13:49:44 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:48:51 2003
+++ shadow/114568.tmp.12562	Wed Jun 25 13:49:44 2003
@@ -9,13 +9,13 @@
 Priority: Normal
 Component: general
 AssignedTo: gtkmm-forge lists sourceforge net                            
 ReportedBy: harald hopfes hopfes sysde eads net               
 TargetMilestone: ---
 URL: 
-Cc: elke meier sysde eads net,murrayc usa net
+Cc: murrayc usa net
 Summary: Memory leak in Dialog::get_vbox() and get_action_area ()
 
 The following program causes memory leaks on each dialog open/close.
 The valgrind leak-check for one open/close and 10 open/close is appended 
 below.
 



--__--__--

Message: 7
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: murrayc usa net
Date: Wed, 25 Jun 2003 13:55:55 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:49:44 2003
+++ shadow/114568.tmp.16335	Wed Jun 25 13:55:55 2003
@@ -1310,6 +1310,12 @@
 :-(
 But now the GTk::Dialog is not destroyed:
 
 See:
 http://bugzilla.gnome.org/showattachment.cgi?attach_id=17764
 
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:55 -------
+Widget_Class::dispose_vfunc_callback is called for Gtk::Dialog, but 
+the Dialog is not deleted?
+
+



--__--__--

Message: 8
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: murrayc usa net
Date: Wed, 25 Jun 2003 13:59:34 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:55:55 2003
+++ shadow/114568.tmp.17883	Wed Jun 25 13:59:34 2003
@@ -1316,6 +1316,11 @@
 
 ------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:55 -------
 Widget_Class::dispose_vfunc_callback is called for Gtk::Dialog, but 
 the Dialog is not deleted?
 
 
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:59 -------
+Created an attachment (id=17765)
+current_test_program.txt
+



--__--__--

Message: 9
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: murrayc usa net
Date: Wed, 25 Jun 2003 14:00:50 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 13:59:34 2003
+++ shadow/114568.tmp.18499	Wed Jun 25 14:00:50 2003
@@ -1321,6 +1321,10 @@
 
 
 ------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 13:59 -------
 Created an attachment (id=17765)
 current_test_program.txt
 
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 14:00 -------
+Just added my current test program for verification. :-)
+



--__--__--

Message: 10
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: murrayc usa net
Date: Wed, 25 Jun 2003 14:14:01 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald hopfes hopfes sysde eads net 

--- shadow/114568	Wed Jun 25 14:00:50 2003
+++ shadow/114568.tmp.24549	Wed Jun 25 14:14:01 2003
@@ -1325,6 +1325,30 @@
 current_test_program.txt
 
 
 ------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 14:00 -------
 Just added my current test program for verification. :-)
 
+
+------- Additional Comments From harald hopfes hopfes sysde eads net  2003-06-25 14:14 -------
+What does the
+
+  reinterpret_cast<GObjectClass*>(klass)->dispose
+     = &dispose_vfunc_callback;
+
+inside
+
+  void Widget_Class::class_init_function(void* g_class,
+                                         void* class_data)
+
+actually cause?
+
+It seems to oberwrite the
+
+  class->dispose = g_object_real_dispose;
+
+inside
+
+  g_object_do_class_init (GObjectClass *class)
+
+What is the result of that?
+



--__--__--

Message: 11
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net,
	harald hopfes hopfes sysde eads net
Cc: murrayc usa net
Date: Wed, 25 Jun 2003 16:32:41 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 114568] Changed - Memory leak in Dialog::get_vbox() and get_action_area ()

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=114568

Changed by harald bugzilla gnome org hopfes de 

--- shadow/114568	Wed Jun 25 14:14:01 2003
+++ shadow/114568.tmp.28414	Wed Jun 25 16:32:41 2003
@@ -1349,6 +1349,20 @@
 inside
 
   g_object_do_class_init (GObjectClass *class)
 
 What is the result of that?
 
+
+------- Additional Comments From harald bugzilla gnome org hopfes de  2003-06-25 16:32 -------
+Actually the MyDialog object must have been destroyed. It guaranteed
+by C++. I will create a dtor with debug-output to verify that.
+(Tomorrow)
+
+###############################
+  void on_button_clicked()
+  {
+    MyDialog d;
+    int res = d.run();
+  }
+###############################
+




--__--__--

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]