[Mono-devel-list] Re: Apache mod-mono and system.drawing problem

Jan Kraljič jan at ver.si
Fri Oct 1 18:03:53 EDT 2004


I correct my misteke, so my test page can be visible 9AM to 9PM UTM
(time when my computer is on) at http://bober.patware.si:1214/test/

i also add code, a soon i can get some time

Have a nice day, 

Jan( on irc PChot )

V pet, 01.10.2004 ob 17:04 je mono-devel-list-request at lists.ximian.com
napisal(a):
> Send Mono-devel-list mailing list submissions to
> 	mono-devel-list at lists.ximian.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.ximian.com/mailman/listinfo/mono-devel-list
> or, via email, send a message with subject or body 'help' to
> 	mono-devel-list-request at lists.ximian.com
> 
> You can reach the person managing the list at
> 	mono-devel-list-admin at lists.ximian.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mono-devel-list digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: System.Diagnostic.EventLog (Jonathan Stowe)
>    2. Re: ppc aot (Joe Ante)
>    3. [patch] ResXResourceReader.cs bugfix (Joel Reed)
>    4. Re: System.Diagnostic.EventLog (Robert Brown)
>    5. Re: System.Diagnostic.EventLog (Jonathan Stowe)
>    6. Re: System.Diagnostic.EventLog (Robert Brown)
>    7. Apache mod-mono and system.drawing problem (Jan =?iso-8859-2?Q?Kralji=E8?=)
> 
> --__--__--
> 
> Message: 1
> Subject: Re: [Mono-devel-list] System.Diagnostic.EventLog
> From: Jonathan Stowe <jns at gellyfish.com>
> To: Mono Development List <mono-devel-list at lists.ximian.com>
> Date: Fri, 01 Oct 2004 12:05:08 +0100
> 
> On Fri, 2004-10-01 at 00:50, Jonathan Pryor wrote:
> > On Thu, 2004-09-30 at 09:09, Robert Brown wrote:
> > > Does anyone what the status of the System.Diagnostic.EventLog class is?  I
> > > looked on the Mono project website (www.go-mono.com) but can't find the
> > > Class Status page.
> > 
> > There's *an* implementation...which pretty much does nothing.
> > 
> > So you can (probably) compile against it, but it won't do anything.
> > 
> 
> Is this something that is planned to be implemented, and if so is anyone
> working on it? For writing to the log would it be preferable to P/Invoke
> the syslog(3) interface (and the analogous API for the EventLog on
> windows) or reimplement from scratch? As for getting events can it be
> relied upon that the syslogd will be able to write to a fifo instead of
> a plain file (of course to use this the user would have to alter
> syslog.conf) then waiting for an event could spawn a thread that reads
> from the fifo.
> 
> Of course I guess the biggest problem will be mapping the syslog
> facilities and priorities to the stuff that you get in Windows.
> 
> Not that I am promising to write anything :-)
> 
> /J\
> -- 
> 
> This e-mail is sponsored by http://www.integration-house.com/
> 
> 
> --__--__--
> 
> Message: 2
> Date: Fri, 01 Oct 2004 15:19:39 +0200
> Subject: Re: [Mono-devel-list] ppc aot
> From: Joe Ante <joe at otee.dk>
> To: Mono Dev <mono-devel-list at lists.ximian.com>
> 
> Hi,
> 
> > Lupus wrote:
> > AOT compilation will reduce the overhead a lot, to at least < 0.5
> > seconds, but it's not yet tested/supported on ppc: some people are
> > interested though, so expect news on that front in the next few weeks.
> Is anything happening on this front?
> 
> 
> When aot'ting mcs mono asserts inside emit_method:
>                 g_warning ("unable to handle jump info %d",
> patch_info->type);
> 
> It seems like MONO_PATCH_INFO_BB_OVF and MONO_PATCH_INFO_EXC_OVF is only
> emitted in the ppc jitter inside EMIT_COND_BRANCH_FLAGS.
> And the aot patch code emit_method and mono_aot_load_method doesn't support
> patching them.
> 
> So i'd really like to get aot running on ppc.
> If someone can give me a outline of what should be done to fix this, i am
> willing to spend some time on it.
> 
> Joachim Ante
> 
> 
> 
> --__--__--
> 
> Message: 3
> Date: Fri, 1 Oct 2004 09:32:36 -0400
> From: Joel Reed <joel.reed at ddiworld.com>
> To: mono-list at ximian.com
> Subject: [Mono-devel-list] [patch] ResXResourceReader.cs bugfix
> 
> 
> --ZPt4rx8FFjLCG7dd
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> 
> ResGen.exe properly handles CDATA sections in value nodes
> of .resx files. monoresgen.exe doesn't properly return
> these values within CDATA sections.
> 
> the attached 1 line patch fixes the problem.
> sample testing files also included.
> 
> to compile & run test with and w/o patch:
> monoresgen sample.resx && mcs temp.cs -resource:sample.resources && ./temp.exe
> 
> jr
> 
> ps. i assuming this list is like lkml - keep posting
> your patch until someone comments/picks it up? if not please
> excuse the resend.
> 
> -- 
> ------------------------------------------------------------
> Joel W. Reed                                    412-257-3881
> ----------   http://home.comcast.net/~joelwreed/  ----------
> 
> --ZPt4rx8FFjLCG7dd
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: attachment; filename="resx-cdata.diff"
> 
> --- class/System.Windows.Forms/System.Resources/ResXResourceReader.cs.orig	2004-09-14 22:14:00.000000000 -0400
> +++ class/System.Windows.Forms/System.Resources/ResXResourceReader.cs	2004-09-14 21:58:53.000000000 -0400
> @@ -87,7 +87,7 @@ namespace System.Resources
>  			if (!gotelement)
>  				return null;
>  			while (reader.Read ()) {
> -				if (reader.NodeType == XmlNodeType.Text) {
> +				if (reader.NodeType == XmlNodeType.Text || reader.NodeType == XmlNodeType.CDATA) {
>  					string v = reader.Value;
>  					return v;
>  				}
> 
> --ZPt4rx8FFjLCG7dd
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: attachment; filename="temp.cs"
> 
> namespace test
> {
> 		using System; 
>     using System.Collections;
> 		using System.Reflection;
> 		using System.Resources;
> 
> 		public class Test
> 		{
> 				public static int Main(string [] args) 
> 				{
>           // Opens a resource reader and gets an enumerator from it.
>           IResourceReader reader = new ResourceReader("sample.resources");
>           IDictionaryEnumerator en = reader.GetEnumerator();
>       
>           // Goes through the enumerator, printing out the key and value pairs.
>           while (en.MoveNext()) {
>             Console.WriteLine();
>             Console.WriteLine("Name: {0}", en.Key);
>             Console.WriteLine("Value: {0}", en.Value);
>           }
>           reader.Close();
> 
>           return 0;
> 				}
> 		}
> }
> 
> --ZPt4rx8FFjLCG7dd
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: attachment; filename="sample.resx"
> 
> <?xml version="1.0" encoding="utf-8" ?>
> <root>
>   <resheader name="ResMimeType">
>     <value>text/microsoft-resx</value>
>   </resheader>
>   <resheader name="Version">
>     <value>1.0.0.0</value>
>   </resheader>
>   <resheader name="Reader">
>     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
>   </resheader>
>   <resheader name="Writer">
>     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
>   </resheader>
> 	<data name="joel">
> 		<value><![CDATA[reed]]></value>
> 	</data>
> </root>
> 
> --ZPt4rx8FFjLCG7dd--
> 
> --__--__--
> 
> Message: 4
> Date: Fri, 1 Oct 2004 05:06:12 -0400 (EDT)
> Subject: Re: [Mono-devel-list] System.Diagnostic.EventLog
> From: "Robert Brown" <robert at rpb3.com>
> To: "Jonathan Stowe" <jns at gellyfish.com>
> Cc: "Mono Development List" <mono-devel-list at lists.ximian.com>
> Reply-To: robert at rpb3.com
> 
> J-
>   Is there a place on the web that I can find the code for the P/Invoke to
> syslog so i can read and write from/to it?  I'm a newbie to the
> P/Invoke<->Linux stuff, so probably any type of resource is better than
> none.
> 
>   Could the mapping of the syslog facilities and priorities be done in a
> config file?
> 
> -=Robert
> 
> 
> > On Fri, 2004-10-01 at 00:50, Jonathan Pryor wrote:
> >> On Thu, 2004-09-30 at 09:09, Robert Brown wrote:
> >> > Does anyone what the status of the System.Diagnostic.EventLog class
> >> is?  I
> >> > looked on the Mono project website (www.go-mono.com) but can't find
> >> the
> >> > Class Status page.
> >>
> >> There's *an* implementation...which pretty much does nothing.
> >>
> >> So you can (probably) compile against it, but it won't do anything.
> >>
> >
> > Is this something that is planned to be implemented, and if so is anyone
> > working on it? For writing to the log would it be preferable to P/Invoke
> > the syslog(3) interface (and the analogous API for the EventLog on
> > windows) or reimplement from scratch? As for getting events can it be
> > relied upon that the syslogd will be able to write to a fifo instead of
> > a plain file (of course to use this the user would have to alter
> > syslog.conf) then waiting for an event could spawn a thread that reads
> > from the fifo.
> >
> > Of course I guess the biggest problem will be mapping the syslog
> > facilities and priorities to the stuff that you get in Windows.
> >
> > Not that I am promising to write anything :-)
> >
> > /J\
> > --
> >
> > This e-mail is sponsored by http://www.integration-house.com/
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
> >
> 
> 
> 
> --__--__--
> 
> Message: 5
> Subject: Re: [Mono-devel-list] System.Diagnostic.EventLog
> From: Jonathan Stowe <jns at gellyfish.com>
> To: robert at rpb3.com
> Cc: Mono Development List <mono-devel-list at lists.ximian.com>
> Date: Fri, 01 Oct 2004 15:30:52 +0100
> 
> On Fri, 2004-10-01 at 10:06, Robert Brown wrote:
> > J-
> >   Is there a place on the web that I can find the code for the P/Invoke to
> > syslog so i can read and write from/to it?  I'm a newbie to the
> > P/Invoke<->Linux stuff, so probably any type of resource is better than
> > none.
> > 
> 
> You would probably want something (off the top of my head and untested)
> like:
> 
> 	[DllImport("libc"]
> 	static extern void openlog(string ident, int option, int facility);
> 
>         [DllImport("libc"
>         static extern void syslog(int priority, string format, params string[] args);
> 
>         [DllImport("libc")]
>         static extern void closelog();
> 
> 
> Then you should be able to do
> 
> 	// Kernel Message with no options
> 
>         openlog("MyProgram",0,0);
> 
>         // Panic! LOG_EMERG = 0
> 
>         syslog(0,"Whoah %s", "It went wrong");
> 
>         closelog();
> 
> I'll get a working example together on the train home :-)
> 
> >   Could the mapping of the syslog facilities and priorities be done in a
> > config file?
> > 
> > -=Robert
> > 
> > 
> > > On Fri, 2004-10-01 at 00:50, Jonathan Pryor wrote:
> > >> On Thu, 2004-09-30 at 09:09, Robert Brown wrote:
> > >> > Does anyone what the status of the System.Diagnostic.EventLog class
> > >> is?  I
> > >> > looked on the Mono project website (www.go-mono.com) but can't find
> > >> the
> > >> > Class Status page.
> > >>
> > >> There's *an* implementation...which pretty much does nothing.
> > >>
> > >> So you can (probably) compile against it, but it won't do anything.
> > >>
> > >
> > > Is this something that is planned to be implemented, and if so is anyone
> > > working on it? For writing to the log would it be preferable to P/Invoke
> > > the syslog(3) interface (and the analogous API for the EventLog on
> > > windows) or reimplement from scratch? As for getting events can it be
> > > relied upon that the syslogd will be able to write to a fifo instead of
> > > a plain file (of course to use this the user would have to alter
> > > syslog.conf) then waiting for an event could spawn a thread that reads
> > > from the fifo.
> > >
> > > Of course I guess the biggest problem will be mapping the syslog
> > > facilities and priorities to the stuff that you get in Windows.
> > >
> > > Not that I am promising to write anything :-)
> > >
> > > /J\
> > > --
> > >
> > > This e-mail is sponsored by http://www.integration-house.com/
> > >
> > > _______________________________________________
> > > Mono-devel-list mailing list
> > > Mono-devel-list at lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> > >
> > >




More information about the Mono-devel-list mailing list