<div dir="ltr"><font color="#333333"><font face="verdana,sans-serif">It looks like these errors don&#39;t happen in Mono <b>2.8</b> when I use the original code. (leaving mono_thread_detach(mono_thread_current()); in there)</font></font><div>

<font color="#333333"><font face="verdana,sans-serif"></font></font><font class="Apple-style-span" color="#333333" face="verdana, sans-serif"><br></font><div><font color="#333333"><font face="verdana,sans-serif">Though now I see that <i>sometimes </i>when I update a dll file it doesn&#39;t work and I have to restart freeswitch and then it works.</font></font><div>

<font color="#333333"><font face="verdana,sans-serif"><br clear="all"></font></font>Yitzchok<br>
<br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 11:40 AM, Yitzchok <span dir="ltr">&lt;<a href="mailto:adminjew@gmail.com">adminjew@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;">

<div dir="ltr"><font color="#333333"><font face="verdana,sans-serif">I tried that and it seems to work.</font></font><div><font color="#333333" face="verdana, sans-serif"><br></font></div><div><font color="#333333"><font face="verdana,sans-serif"><br>


</font></font></div><div><font color="#333333"><font face="verdana,sans-serif">---diff from git head---</font></font></div><div><font color="#333333"><font face="verdana,sans-serif"><div><br></div><div><br></div><div>@@ -385,9 +385,7 @@ SWITCH_STANDARD_API(managedrun_api_function)</div>

<div class="im">
<div> <span style="white-space:pre-wrap">        </span>} else {<span style="white-space:pre-wrap">        </span></div><div> <span style="white-space:pre-wrap">                </span>stream-&gt;write_function(stream, &quot;-ERR ExecuteBackground returned false (unknown module or exception?).\n&quot;);</div>


<div> <span style="white-space:pre-wrap">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span style="white-space:pre-wrap">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> <span style="white-space:pre-wrap">        </span>return SWITCH_STATUS_SUCCESS;</div><div> }</div><div> </div></div><div>@@ -403,9 +401,7 @@ SWITCH_STANDARD_API(managed_api_function)</div><div class="im">


<div> <span style="white-space:pre-wrap">        </span>if (!(executeDelegate(cmd, stream, stream-&gt;param_event))) {</div><div> <span style="white-space:pre-wrap">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Execute failed for %s (unknown module or exception).\n&quot;, cmd); </div>


<div> <span style="white-space:pre-wrap">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span style="white-space:pre-wrap">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> <span style="white-space:pre-wrap">        </span>return SWITCH_STATUS_SUCCESS;</div><div> }</div><div> </div></div><div>@@ -421,9 +417,7 @@ SWITCH_STANDARD_APP(managed_app_function)</div><div class="im">


<div> <span style="white-space:pre-wrap">        </span>if (!(runDelegate(data, session))) {</div><div> <span style="white-space:pre-wrap">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Application run failed for %s (unknown module or exception).\n&quot;, data);</div>


<div> <span style="white-space:pre-wrap">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span style="white-space:pre-wrap">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> }</div><div> </div><div> SWITCH_STANDARD_API(managedreload_api_function) </div></div><div>@@ -438,9 +432,7 @@ SWITCH_STANDARD_API(managedreload_api_function)</div><div class="im"><div> <span style="white-space:pre-wrap">        </span>if (!(reloadDelegate(cmd))) {</div>


<div> <span style="white-space:pre-wrap">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Execute failed for %s (unknown module or exception).\n&quot;, cmd); </div><div> <span style="white-space:pre-wrap">        </span>}</div>


<div>-#ifndef _MANAGED</div><div>-<span style="white-space:pre-wrap">        </span>mono_thread_detach(mono_thread_current());</div><div>-#endif</div><div>+</div><div> <span style="white-space:pre-wrap">        </span>return SWITCH_STATUS_SUCCESS;</div>


<div> }</div><div><br></div><div><br></div><div><br></div><div>-----</div></div></font></font></div><div><font color="#888888"><font color="#333333"><font face="verdana,sans-serif"><br clear="all"></font></font>Yitzchok</font><div>

<div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 10:57 AM, Jeff Lenk <span dir="ltr">&lt;<a href="mailto:jeff@jefflenk.com" target="_blank">jeff@jefflenk.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Not sure how this makes sense yet. Yitzchok would you try this with only the<br>
mono_thread_detach calls removed leaving the mono_thread_attach in place and<br>
see what happens.<br>
<br>
Thanks<br>
Jeff<br>
<font color="#888888">--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5607396.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5607396.html</a><br>



</font><div><div></div><div>Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div></div>