<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Maratis.exe portability problem [SOLVED]]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=323</link>
		<description><![CDATA[The most recent posts in Maratis.exe portability problem [SOLVED].]]></description>
		<lastBuildDate>Mon, 12 Mar 2012 12:35:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1610#p1610</link>
			<description><![CDATA[<p>Probably a cleanup of MGui will be needed at some point,<br />MCore and MEngine has been checked and checked again, but not MGui and Maratis editor code,<br />I was missing time when I did the first release.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 12 Mar 2012 12:35:57 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1610#p1610</guid>
		</item>
		<item>
			<title><![CDATA[Re: Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1609#p1609</link>
			<description><![CDATA[<p>I only know that even a simple: if(varType == M_VAR_BOOL) crashed it. It was like varType was not readable at all, and caused a segment fault. The crash occured always after a call to some function of user32.dll, so I thought there was going on something instable. Of course the real leak might be somewhere else, but when code crashes which shouldn&#039;t crash, it&#039;s very hard to debug it. I&#039;ve seen this before also in BlendELF, and there also a printf(&quot;&quot;) fixed the crash.</p>]]></description>
			<author><![CDATA[dummy@example.com (Lumooja)]]></author>
			<pubDate>Mon, 12 Mar 2012 11:57:34 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1609#p1609</guid>
		</item>
		<item>
			<title><![CDATA[Re: Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1607#p1607</link>
			<description><![CDATA[<p>wow ?<br />what is that ? any idea how to trace the leak ?</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 12 Mar 2012 11:25:41 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1607#p1607</guid>
		</item>
		<item>
			<title><![CDATA[Re: Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1601#p1601</link>
			<description><![CDATA[<p>The new MString.cpp didn&#039;t help. But adding a MessageBoxA() or printf() to access the varType parameter fixed the crashing:<br /></p><div class="codebox"><pre><code>void MaratisUI::addValue(MGuiWindow * window, const char * valueName, M_VAR_TYPE varType, void * pointer, MVector2 * position)
{
    float size = 16;
    float ySpace = 15;
    MVector4 color(1, 1, 1, 1);
    MVector4 valueColor(1.0f, 0.95f, 0.45f, 0.85f); // 1.0 0.97 0.33
    MVector4 variableColor(0.66f, 0.76f, 0.87f, 1.0f);

    printf(&quot;%d&quot;,varType);   // wierd bug fix!

    if(varType == M_VAR_BOOL)</code></pre></div><p>There must be somekind of memory leak going on in the user32.dll or somewhere, when these kind of wierd fixes stabilize it.<br />Everything works fine now, and this hack doesn&#039;t take any performance either, because it&#039;s only called 4 times when &quot;add camera&quot;, &quot;add light&quot;, etc... is pressed in Editor.</p>]]></description>
			<author><![CDATA[dummy@example.com (Lumooja)]]></author>
			<pubDate>Sun, 11 Mar 2012 20:20:44 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1601#p1601</guid>
		</item>
		<item>
			<title><![CDATA[Re: Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1598#p1598</link>
			<description><![CDATA[<p>I realized something on my computer was more recent than svn, it can be related,<br />try to update the svn code, only one file changed : MString.cpp in MCore</p><p>I think it can be that, because I&#039;m not able to reproduce the bug</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 11 Mar 2012 15:25:05 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1598#p1598</guid>
		</item>
		<item>
			<title><![CDATA[Re: Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1597#p1597</link>
			<description><![CDATA[<p>Oh well, I found a funny bug fix: just disable the whole MaratisUI::addValue() method and everything works and doesn&#039;t crash anymore:<br /></p><div class="codebox"><pre><code>void MaratisUI::addValue(MGuiWindow * window, const char * valueName, M_VAR_TYPE varType, void * pointer, MVector2 * position)
{
    return;    // funny bug fix!
    float size = 16;
    float ySpace = 15;</code></pre></div><p>Surely this function must do something useful, what could it be?</p><p>EDIT: Ok, it seems to be a useful function after all, because it&#039;s needed for example for changing texts. But now it should be quite easy to find out on which line it crashes.</p>]]></description>
			<author><![CDATA[dummy@example.com (Lumooja)]]></author>
			<pubDate>Sun, 11 Mar 2012 14:31:22 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1597#p1597</guid>
		</item>
		<item>
			<title><![CDATA[Re: Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1596#p1596</link>
			<description><![CDATA[<p>I get this kind of disassembly when I run in debug mode and click on &quot;add camera&quot; icon in Maratis:<br /><a href="https://sites.google.com/site/maratis3d/editorcrash1.png">https://sites.google.com/site/maratis3d &#133; crash1.png</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Lumooja)]]></author>
			<pubDate>Sun, 11 Mar 2012 13:26:16 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1596#p1596</guid>
		</item>
		<item>
			<title><![CDATA[Re: Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1595#p1595</link>
			<description><![CDATA[<p>Thank you,<br />I&#039;ll take a look, but I never had this bug,<br />can you trace it in debug mode ?</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 11 Mar 2012 12:25:42 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1595#p1595</guid>
		</item>
		<item>
			<title><![CDATA[Maratis.exe portability problem [SOLVED]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1591#p1591</link>
			<description><![CDATA[<p>I wrote this on the Maratis for MinGW webpage:</p><p><span style="color: #FF0000">Support issue: Maratis Editor crashes when trying to add entities. As workaround, you can load the demo project, then click on an entity on the left side list, and after that it doesn&#039;t crash anymore. It must be some issue with missing NULL initializations in the MGui code, which MinGW elegantly optimizes.</span></p><p>I hope this helps to find the bug in the source code.</p>]]></description>
			<author><![CDATA[dummy@example.com (Lumooja)]]></author>
			<pubDate>Sun, 11 Mar 2012 02:00:42 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1591#p1591</guid>
		</item>
	</channel>
</rss>
