Hi,<div><br></div><div>  This will never work, the runtime depends on variables being zero initalized in a mirriad places. Neither java&#39;s hotspot, nor <a href="http://MS.NET">MS.NET</a> CLR allows you to start/stop the runtime multiple times.</div>
<div><br></div><div>                 Zoltan<br><br><div class="gmail_quote">On Tue, May 3, 2011 at 3:54 PM, Richard Sykes <span dir="ltr">&lt;<a href="mailto:jitsua@gmail.com">jitsua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>I&#39;m new here (just signed up), following the <a href="http://mono-project.com/Contributing" target="_blank">http://mono-project.com/Contributing</a> #Ways to Contribute. If okay/appropriate, I would like to throw into the ring suggested fixed as I find them.</div>

<div>Constructive feedback is appreciated.</div><div>My motive/goal: To get this working...</div><div><div style="font-family:Helvetica;font-size:medium"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(212, 39, 34)">

<span style="color:rgb(0, 0, 0)"><span style="white-space:pre-wrap">        </span></span><span style="color:rgb(115, 62, 164)">MonoDomain</span><span style="color:rgb(0, 0, 0)">* domain = </span><span style="color:rgb(64, 31, 125)">mono_jit_init_version</span><span style="color:rgb(0, 0, 0)"> (</span>&quot;Root Domain&quot;<span style="color:rgb(0, 0, 0)">, </span>&quot;v2.0.50727&quot;<span style="color:rgb(0, 0, 0)">);</span></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(64, 31, 125)"><span style="color:rgb(0, 0, 0)"><span style="white-space:pre-wrap">        </span></span>mono_jit_cleanup<span style="color:rgb(0, 0, 0)">(domain);</span></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(212, 39, 34)"><span style="color:rgb(0, 0, 0)"><span style="white-space:pre-wrap">        </span>domain = </span><span style="color:rgb(64, 31, 125)">mono_jit_init_version</span><span style="color:rgb(0, 0, 0)"> (</span>&quot;Root Domain&quot;<span style="color:rgb(0, 0, 0)">, </span>&quot;v2.0.50727&quot;<span style="color:rgb(0, 0, 0)">);</span></div>

<div><span style="font-family:arial;font-size:small">The fix: The first one (of many) is very simple &amp; trivial; set the global_codeman back to NULL so that it goes through the correct code path in function </span><span style="font-family:Menlo;font-size:11px">mono_global_codeman_reserve</span></div>

<div><span style="font-family:arial;font-size:small">My Code base: Tarball 2.10.2</span></div><div><span style="font-family:arial;font-size:small">File: mini.c</span></div>
<div><span style="font-family:arial;font-size:small">Function: </span><span style="font-family:Menlo;font-size:11px">mini_cleanup</span></div><div><span style="font-family:arial;font-size:small">Line: 6706 to 6707</span></div>

<div><span style="font-family:arial;font-size:small">Old code:</span></div><div><span style="font-family:arial;font-size:small"><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo">
<span style="white-space:pre-wrap">        </span><span style="color:#be299d">if</span> (!mono_dont_free_global_codeman)</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">                </span>mono_code_manager_destroy (global_codeman);</p><div>New code:</div><div><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo">

<span style="white-space:pre-wrap">        </span><span style="color:#be299d">if</span> (!mono_dont_free_global_codeman)</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">        </span>{</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">                </span>mono_code_manager_destroy (global_codeman);</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">                </span>global_codeman = <span style="color:#be299d">NULL</span>;</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">        </span>}</p></div><div><br></div></span></div><div><font face="arial"><span style="font-size:small">Regards,</span></font></div>

<div><font face="arial"><span style="font-size:small"><br></span></font></div><font color="#888888"><div><font face="arial"><span style="font-size:small"><br>
</span></font></div><div><font face="arial"><span style="font-size:small">Richard Sykes.</span></font></div></font></div></div>
<br>_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
<br></blockquote></div><br></div>