<div dir="ltr"><font color="#333333"><font face="verdana,sans-serif"><div><font color="#333333"><font face="verdana,sans-serif">--Bug Fix--</font></font></div><div><font color="#333333"><font face="verdana,sans-serif"><br>
</font></font></div>Here is a diff file for <b>src/mod/languages/<span class="Apple-style-span" style="font-weight: normal; "><b>mod_managed/</b></span>mod_managed.cpp </b>it seems to work but I don't know if this has some side effects.</font></font><div>
<font class="Apple-style-span" color="#333333" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#333333" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#333333" face="verdana, sans-serif">----</font></div>
<div><font color="#333333"><font face="verdana,sans-serif"><br></font></font></div><div><font color="#333333"><font face="verdana,sans-serif"><div>@@ -377,17 +377,13 @@ SWITCH_STANDARD_API(managedrun_api_function)</div><div>
<span class="Apple-tab-span" style="white-space:pre">                </span>stream->write_function(stream, "-ERR no args specified!\n");<span class="Apple-tab-span" style="white-space:pre">        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>return SWITCH_STATUS_SUCCESS;</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_attach(globals.domain);</div><div>-#endif</div>
<div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>if (executeBackgroundDelegate(cmd)) {</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>stream->write_function(stream, "+OK\n");</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>} else {<span class="Apple-tab-span" style="white-space:pre">        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>stream->write_function(stream, "-ERR ExecuteBackground returned false (unknown module or exception?).\n");</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>return SWITCH_STATUS_SUCCESS;</div><div> }</div><div> </div><div>@@ -397,15 +393,11 @@ SWITCH_STANDARD_API(managed_api_function)</div>
<div> <span class="Apple-tab-span" style="white-space:pre">                </span>stream->write_function(stream, "-ERR no args specified!\n");<span class="Apple-tab-span" style="white-space:pre">        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>return SWITCH_STATUS_SUCCESS;</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_attach(globals.domain);</div><div>-#endif</div>
<div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>if (!(executeDelegate(cmd, stream, stream->param_event))) {</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Execute failed for %s (unknown module or exception).\n", cmd); </div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>return SWITCH_STATUS_SUCCESS;</div><div> }</div><div> </div><div>@@ -415,15 +407,11 @@ SWITCH_STANDARD_APP(managed_app_function)</div>
<div> <span class="Apple-tab-span" style="white-space:pre">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No args specified!\n");</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>return;</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_attach(globals.domain);</div><div>-#endif</div>
<div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>if (!(runDelegate(data, session))) {</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Application run failed for %s (unknown module or exception).\n", data);</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </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>@@ -432,15 +420,11 @@ SWITCH_STANDARD_API(managedreload_api_function)</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>stream->write_function(stream, "-ERR no args specified!\n");<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">                </span>return SWITCH_STATUS_SUCCESS;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_attach(globals.domain);</div>
<div>-#endif</div><div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>if (!(reloadDelegate(cmd))) {</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Execute failed for %s (unknown module or exception).\n", cmd); </div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>return SWITCH_STATUS_SUCCESS;</div><div> }</div><div> </div><div><br></div><div><br></div></font></font>Yitzchok<br>
<br><br><div class="gmail_quote">On Mon, Oct 4, 2010 at 12:04 PM, Yitzchok <span dir="ltr"><<a href="mailto:adminjew@gmail.com">adminjew@gmail.com</a>></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 have already done that but it doesn't help also note that on the first call it works fine.</font></font><div><font color="#333333" face="verdana, sans-serif"><br>
</font></div><div><div><font color="#333333"><font face="verdana,sans-serif"><br clear="all"></font></font>Yitzchok<div><div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Mon, Oct 4, 2010 at 11:12 AM, Jeff Lenk <span dir="ltr"><<a href="mailto:jeff@jefflenk.com" target="_blank">jeff@jefflenk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Have you seen:<br>
<a href="http://wiki.freeswitch.org/wiki/Mod_mono" target="_blank">http://wiki.freeswitch.org/wiki/Mod_mono</a><br>
<br>
<dllmap dll="mod_managed.dll" target="mod_managed.so" os="!windows"/><br>
<br>
regarding null exceptions?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5599563.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5599563.html</a><br>
</font><div>Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
</div><div><div></div><div>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></div>
</blockquote></div><br></div></div>