Mono 2.8 released and need to update mod_managed
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
It seems like glib itself is easy to get around by removing the glig includes and changing g_free(x) to mono_free(x) But I am getting stuck by this one. - The MonoAssemblyName struct is no longer fully visible: to access its fields you need to use the newly-provided accessors. Note also that it can't be allocated on the stack anymore and you'll need to create and destroy it with the following API: MonoAssemlyName *aname = mono_assembly_name_new ("mscorlib"); mono_assembly_name_free (aname); (from http://www.mono-project.com/Embedding_Mono) Yitzchok On Wed, Oct 6, 2010 at 9:00 PM, Yitzchok <adminjew@gmail.com> wrote:
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
I got it to work and attached is the patch file with the changes I made to get it to work. (Jeff this includes the changes from my other post) This code changes has to be reviewed and I think you should checkout *mono_assembly_name_free (name); *I don't call that but maybe it should be called somewhere in the code. Thanks Yitzchok On Wed, Oct 6, 2010 at 9:48 PM, Yitzchok <adminjew@gmail.com> wrote:
It seems like glib itself is easy to get around by removing the glig includes and changing g_free(x) to mono_free(x)
But I am getting stuck by this one.
- The MonoAssemblyName struct is no longer fully visible: to access its fields
you need to use the newly-provided accessors. Note also that it can't be allocated on the stack anymore and you'll need to create and destroy it with the following API:
MonoAssemlyName *aname = mono_assembly_name_new ("mscorlib"); mono_assembly_name_free (aname);
(from http://www.mono-project.com/Embedding_Mono)
Yitzchok
On Wed, Oct 6, 2010 at 9:00 PM, Yitzchok <adminjew@gmail.com> wrote:
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
Yitzchok, Thanks for working on this, we appreciate it when people in the community step up and help out. BTW, this particular topic is a little bit intense for the users list - it is better for the -dev list. Thanks, MC On Wed, Oct 6, 2010 at 8:20 PM, Yitzchok <adminjew@gmail.com> wrote:
I got it to work and attached is the patch file with the changes I made to get it to work. (Jeff this includes the changes from my other post)
This code changes has to be reviewed and I think you should checkout *mono_assembly_name_free (name); *I don't call that but maybe it should be called somewhere in the code.
Thanks
Yitzchok
On Wed, Oct 6, 2010 at 9:48 PM, Yitzchok <adminjew@gmail.com> wrote:
It seems like glib itself is easy to get around by removing the glig includes and changing g_free(x) to mono_free(x)
But I am getting stuck by this one.
- The MonoAssemblyName struct is no longer fully visible: to access its fields
you need to use the newly-provided accessors. Note also that it can't be allocated on the stack anymore and you'll need to create and destroy it with the following API:
MonoAssemlyName *aname = mono_assembly_name_new ("mscorlib"); mono_assembly_name_free (aname);
(from http://www.mono-project.com/Embedding_Mono)
Yitzchok
On Wed, Oct 6, 2010 at 9:00 PM, Yitzchok <adminjew@gmail.com> wrote:
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
_______________________________________________ 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
Thanks for helping out. I just saw the Mono 2.8 announcement and it looks exciting. -Michael From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Yitzchok Sent: Wednesday, October 06, 2010 9:21 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Mono 2.8 released and need to update mod_managed I got it to work and attached is the patch file with the changes I made to get it to work. (Jeff this includes the changes from my other post) This code changes has to be reviewed and I think you should checkout mono_assembly_name_free (name); I don't call that but maybe it should be called somewhere in the code. Thanks Yitzchok On Wed, Oct 6, 2010 at 9:48 PM, Yitzchok <adminjew@gmail.com<mailto:adminjew@gmail.com>> wrote: It seems like glib itself is easy to get around by removing the glig includes and changing g_free(x) to mono_free(x) But I am getting stuck by this one. · The MonoAssemblyName struct is no longer fully visible: to access its fields you need to use the newly-provided accessors. Note also that it can't be allocated on the stack anymore and you'll need to create and destroy it with the following API: MonoAssemlyName *aname = mono_assembly_name_new ("mscorlib"); mono_assembly_name_free (aname); (from http://www.mono-project.com/Embedding_Mono) Yitzchok On Wed, Oct 6, 2010 at 9:00 PM, Yitzchok <adminjew@gmail.com<mailto:adminjew@gmail.com>> wrote: Mono 2.8 was released today with support for C# 4 and more 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. Yitzchok
Patches belong on http://jira.freeswitch.org if you can please. /b On Oct 6, 2010, at 8:00 PM, Yitzchok wrote:
Mono 2.8 was released today with support for C# 4 and more 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.
Yitzchok
Here it is. http://jira.freeswitch.org/browse/FS-2774 I would be a good idea if someone has a look through the code since I am not a c(++) developer. <http://jira.freeswitch.org/browse/FS-2774> Yitzchok On Tue, Oct 12, 2010 at 10:30 AM, Brian West <brian@freeswitch.org> wrote:
Patches belong on http://jira.freeswitch.org if you can please.
/b
On Oct 6, 2010, at 8:00 PM, Yitzchok wrote:
Mono 2.8 was released today with support for C# 4 and more 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.
Yitzchok
_______________________________________________ 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
participants (4)
-
Brian West
-
Michael Collins
-
Michael Giagnocavo
-
Yitzchok