Gtkmm-forge Digest, Vol 7, Issue 5



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-owner 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. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 383340] Memory leaks under win32 and VS2005
      (gtkmm (bugzilla.gnome.org))
   2. [Bug 383340] Memory leaks under win32 and VS2005
      (gtkmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Sat,  9 Dec 2006 21:08:36 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 383340] Memory leaks under win32 and
	VS2005
To: gtkmm-forge lists sourceforge net
Message-ID: <20061209210836 263696C40D3 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=383340

  gtkmm | general | Ver: 2.4.x





------- Comment #10 from Murray Cumming  2006-12-09 21:07 UTC -------
Could you try calling Glib::wrap_register_cleanup() and
Glib::Error::register_cleanup()?


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



------------------------------

Message: 2
Date: Sun, 10 Dec 2006 13:09:50 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 383340] Memory leaks under win32 and
	VS2005
To: gtkmm-forge lists sourceforge net
Message-ID: <20061210130950 19EB56C40C6 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=383340

  gtkmm | general | Ver: 2.4.x





------- Comment #11 from Christopher Raine  2006-12-10 13:08 UTC -------
> Could you try calling Glib::wrap_register_cleanup() and
> Glib::Error::register_cleanup()?
> 

This works. There are no reported memory leaks anymore if you call these two
functions. The only issue to get this to work was that you have to ensure that
the Gtk::Main object has already been destructed before calling the above
functions. Just for the record in case anybody else stumbles upon this, you
have to do the following : 

int main(int argc, char *argv[])
{
        _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF  );
        // enclose the Gtk::Main object in a local scope 
        {
                Gtk::Main kit(argc, argv);
        }
        // call the clean up functions after the Gtk::Main object has been
destroyed
        Glib::Error::register_cleanup();
        Glib::wrap_register_cleanup(); 
        return 0;
}

Thank you for your help. 

For me, this bug is not an issue anymore.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

------------------------------

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


End of Gtkmm-forge Digest, Vol 7, Issue 5
*****************************************



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