Mono 2.8 was released today with support for C# 4 and more http://www.mono-project.com/Release_Notes_Mono_2.8 <http://www.mono-project.com/Release_Notes_Mono_2.8>It seems like there was some changes in the way applications embed mono (which includes removing the reference to glib and replacing it with eglib from what I understand) in this link you can find information for the changes made with embedding mono http://www.mono-project.com/Embedding_Mono I am trying to see if I can make it work but since I am just a C# windows developer (not a c or c++ dev) what I am doing is just hacking around and don't know if I will even get it to work but I think a c++ linux developer might get it to work with only a little work (the info needed I think is in the link above). So I am wondering if anyone is interested to get it to work. <http://www.mono-project.com/Embedding_Mono> Yitzchok On Wed, Oct 6, 2010 at 11:40 AM, Yitzchok <adminjew@gmail.com> wrote:
I tried that and it seems to work.
---diff from git head---
@@ -385,9 +385,7 @@ SWITCH_STANDARD_API(managedrun_api_function) } else { stream->write_function(stream, "-ERR ExecuteBackground returned false (unknown module or exception?).\n"); } -#ifndef _MANAGED - mono_thread_detach(mono_thread_current()); -#endif + return SWITCH_STATUS_SUCCESS; }
@@ -403,9 +401,7 @@ SWITCH_STANDARD_API(managed_api_function) if (!(executeDelegate(cmd, stream, stream->param_event))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Execute failed for %s (unknown module or exception).\n", cmd); } -#ifndef _MANAGED - mono_thread_detach(mono_thread_current()); -#endif + return SWITCH_STATUS_SUCCESS; }
@@ -421,9 +417,7 @@ SWITCH_STANDARD_APP(managed_app_function) if (!(runDelegate(data, session))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Application run failed for %s (unknown module or exception).\n", data); } -#ifndef _MANAGED - mono_thread_detach(mono_thread_current()); -#endif + }
SWITCH_STANDARD_API(managedreload_api_function) @@ -438,9 +432,7 @@ SWITCH_STANDARD_API(managedreload_api_function) if (!(reloadDelegate(cmd))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Execute failed for %s (unknown module or exception).\n", cmd); } -#ifndef _MANAGED - mono_thread_detach(mono_thread_current()); -#endif + return SWITCH_STATUS_SUCCESS; }
-----
Yitzchok
On Wed, Oct 6, 2010 at 10:57 AM, Jeff Lenk <jeff@jefflenk.com> wrote:
Not sure how this makes sense yet. Yitzchok would you try this with only the mono_thread_detach calls removed leaving the mono_thread_attach in place and see what happens.
Thanks Jeff -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org