<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: </title>
	<atom:link href="https://mm.soldat.pl/development-log/861/feed" rel="self" type="application/rss+xml" />
	<link>https://mm.soldat.pl/development-log/861</link>
	<description>Michał Marcinkowski&#039;s: Gamedev Log &#38; Articles</description>
	<lastBuildDate>Tue, 24 Mar 2026 04:51:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.39</generator>
	<item>
		<title>By: mar77a</title>
		<link>https://mm.soldat.pl/development-log/861/comment-page-1#comment-124984</link>
		<dc:creator><![CDATA[mar77a]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 14:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://mm.soldat.pl/?p=861#comment-124984</guid>
		<description><![CDATA[MM.. im disappointed.. with all the movie experience you have how could you not resort to Arnold to solve this problem ( http://www.youtube.com/watch?v=KUYhqUgg-ig )]]></description>
		<content:encoded><![CDATA[<p>MM.. im disappointed.. with all the movie experience you have how could you not resort to Arnold to solve this problem ( <a href="http://www.youtube.com/watch?v=KUYhqUgg-ig" rel="nofollow">http://www.youtube.com/watch?v=KUYhqUgg-ig</a> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: live3v1l</title>
		<link>https://mm.soldat.pl/development-log/861/comment-page-1#comment-124907</link>
		<dc:creator><![CDATA[live3v1l]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 03:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://mm.soldat.pl/?p=861#comment-124907</guid>
		<description><![CDATA[If it isn&#039;t better to hide it. I would create a class which receives messages about deleting windows.
When exit button is pressed event listener sends message to that class which deletes window in the next game loop.]]></description>
		<content:encoded><![CDATA[<p>If it isn&#8217;t better to hide it. I would create a class which receives messages about deleting windows.<br />
When exit button is pressed event listener sends message to that class which deletes window in the next game loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Makron666</title>
		<link>https://mm.soldat.pl/development-log/861/comment-page-1#comment-124900</link>
		<dc:creator><![CDATA[Makron666]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 02:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://mm.soldat.pl/?p=861#comment-124900</guid>
		<description><![CDATA[What about if the GUI, makes a call to a Gun.]]></description>
		<content:encoded><![CDATA[<p>What about if the GUI, makes a call to a Gun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dada</title>
		<link>https://mm.soldat.pl/development-log/861/comment-page-1#comment-124800</link>
		<dc:creator><![CDATA[dada]]></dc:creator>
		<pubDate>Tue, 29 Dec 2009 16:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://mm.soldat.pl/?p=861#comment-124800</guid>
		<description><![CDATA[yeah but after you shot yourself you can&#039;t clean up the mess you made.]]></description>
		<content:encoded><![CDATA[<p>yeah but after you shot yourself you can&#8217;t clean up the mess you made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: archont</title>
		<link>https://mm.soldat.pl/development-log/861/comment-page-1#comment-124771</link>
		<dc:creator><![CDATA[archont]]></dc:creator>
		<pubDate>Tue, 29 Dec 2009 14:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://mm.soldat.pl/?p=861#comment-124771</guid>
		<description><![CDATA[Ah, I remember the times when I was still coding in C, and had to delete objects. Oh the fun of runtime errors.

Now I just remove all references to the object and it deletes itself. Clean and simple like that.

Except when it doesn&#039;t, because it&#039;s linked to an automatically assigned event listener that I wasn&#039;t aware of, and causes a massive 100 megabyte memory leak and incremental CPU burn. 

As for your problem, just delete the menu from the object containing the menu. Parent menu deletes child submenu, parent graphicsmanager/perspective/window/whatever deletes root menu. Of all the pointers in an application that point to the menu, there has to be one which has the most relevance, and can be said to &quot;own&quot; the menu, nay?

By the way, it&#039;s not &quot;eat yourself&quot; but delete yourself. Technically kill yourself. And for that we hunams developed a nice little utility class called cGun.]]></description>
		<content:encoded><![CDATA[<p>Ah, I remember the times when I was still coding in C, and had to delete objects. Oh the fun of runtime errors.</p>
<p>Now I just remove all references to the object and it deletes itself. Clean and simple like that.</p>
<p>Except when it doesn&#8217;t, because it&#8217;s linked to an automatically assigned event listener that I wasn&#8217;t aware of, and causes a massive 100 megabyte memory leak and incremental CPU burn. </p>
<p>As for your problem, just delete the menu from the object containing the menu. Parent menu deletes child submenu, parent graphicsmanager/perspective/window/whatever deletes root menu. Of all the pointers in an application that point to the menu, there has to be one which has the most relevance, and can be said to &#8220;own&#8221; the menu, nay?</p>
<p>By the way, it&#8217;s not &#8220;eat yourself&#8221; but delete yourself. Technically kill yourself. And for that we hunams developed a nice little utility class called cGun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MM</title>
		<link>https://mm.soldat.pl/development-log/861/comment-page-1#comment-124760</link>
		<dc:creator><![CDATA[MM]]></dc:creator>
		<pubDate>Tue, 29 Dec 2009 12:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://mm.soldat.pl/?p=861#comment-124760</guid>
		<description><![CDATA[I&#039;m using number 3 currently. I agree it&#039;s hardcore. I keep accessing the objects methods after deletion. Not very coder-friendly but its the most clean and fast way from all the 4.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m using number 3 currently. I agree it&#8217;s hardcore. I keep accessing the objects methods after deletion. Not very coder-friendly but its the most clean and fast way from all the 4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chaosteil</title>
		<link>https://mm.soldat.pl/development-log/861/comment-page-1#comment-124753</link>
		<dc:creator><![CDATA[Chaosteil]]></dc:creator>
		<pubDate>Tue, 29 Dec 2009 12:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://mm.soldat.pl/?p=861#comment-124753</guid>
		<description><![CDATA[Either you can:

1) Make just the GUI menu be managed by another object (most specifically by the one which created it, to keep the code clean)
2) Go the easy route with boost::shared_ptr
3) Call delete yourself and don&#039;t access any more members of the object (hardcore-ay)
4) some other obscure method I&#039;m currently not thinking about]]></description>
		<content:encoded><![CDATA[<p>Either you can:</p>
<p>1) Make just the GUI menu be managed by another object (most specifically by the one which created it, to keep the code clean)<br />
2) Go the easy route with boost::shared_ptr<br />
3) Call delete yourself and don&#8217;t access any more members of the object (hardcore-ay)<br />
4) some other obscure method I&#8217;m currently not thinking about</p>
]]></content:encoded>
	</item>
</channel>
</rss>
