[Mono-dev] [PATCH] CodeGenerator/CodeDom classes (again)
Hello, This is the third time I'm posting this (no counting my first, Visitor-less version). Nobody provided any feedback so far... Attached you'll find patches for CodeGenerator.cs and quite a few System.CodeDom classes. They implement the Visitor pattern for the CodeGenerator (traverser) and the classes in System.CodeDom (nodes to be visited)*. The result is much nicer and faster code. The patch is big only because it contains a lot of boiler plate code. ChangeLog entries are included, all unit tests pass. Please review (or at least comment...) - Juraj *) Thanks again to Robert Jordan, for sketching out how to apply the Visitor pattern to the CodeGenerator/CodeDom classes! Index: System.dll.sources === --- System.dll.sources (revision 93765) +++ System.dll.sources (working copy) @@ -112,6 +112,7 @@ System.CodeDom/CodeTypeReferenceOptions.cs System.CodeDom/CodeVariableDeclarationStatement.cs System.CodeDom/CodeVariableReferenceExpression.cs +System.CodeDom/ICodeDomVisitor.cs System.CodeDom.Compiler/CodeCompiler.cs System.CodeDom.Compiler/CodeDomConfigurationHandler.cs System.CodeDom.Compiler/CodeDomProvider.cs Index: System.CodeDom/CodeEventReferenceExpression.cs === --- System.CodeDom/CodeEventReferenceExpression.cs (revision 93765) +++ System.CodeDom/CodeEventReferenceExpression.cs (working copy) @@ -76,5 +76,13 @@ targetObject = value; } } + + // + // ICodeDomVisitor method + // + internal override void Accept (ICodeDomVisitor visitor) + { + visitor.Visit (this); + } } } Index: System.CodeDom/CodeArgumentReferenceExpression.cs === --- System.CodeDom/CodeArgumentReferenceExpression.cs (revision 93765) +++ System.CodeDom/CodeArgumentReferenceExpression.cs (working copy) @@ -65,5 +65,13 @@ parameterName = value; } } + + // + // ICodeDomVisitor method + // + internal override void Accept (ICodeDomVisitor visitor) + { + visitor.Visit (this); + } } } Index: System.CodeDom/CodeAttachEventStatement.cs === --- System.CodeDom/CodeAttachEventStatement.cs (revision 93765) +++ System.CodeDom/CodeAttachEventStatement.cs (working copy) @@ -87,5 +87,13 @@ listener = value; } } + + // + // ICodeDomVisitor method + // + internal override void Accept (ICodeDomVisitor visitor) + { + visitor.Visit (this); + } } } Index: System.CodeDom/CodePropertySetValueReferenceExpression.cs === --- System.CodeDom/CodePropertySetValueReferenceExpression.cs (revision 93765) +++ System.CodeDom/CodePropertySetValueReferenceExpression.cs (working copy) @@ -38,5 +38,12 @@ public class CodePropertySetValueReferenceExpression : CodeExpression { + // + // ICodeDomVisitor method + // + internal override void Accept (ICodeDomVisitor visitor) + { + visitor.Visit (this); + } } } Index: System.CodeDom/CodeDirectionExpression.cs === --- System.CodeDom/CodeDirectionExpression.cs (revision 93765) +++ System.CodeDom/CodeDirectionExpression.cs (working copy) @@ -76,5 +76,13 @@ expression = value; } } + + // + // ICodeDomVisitor method + // + internal override void Accept (ICodeDomVisitor visitor) + { + visitor.Visit (this); + } } } Index: System.CodeDom/CodeThisReferenceExpression.cs === --- System.CodeDom/CodeThisReferenceExpression.cs (revision 93765) +++ System.CodeDom/CodeThisReferenceExpression.cs (working copy) @@ -45,5 +45,13 @@ public CodeThisReferenceExpression() { } + + // + // ICodeDomVisitor method + // + internal override void Accept (ICodeDomVisitor visitor) + { + visitor.Visit (this); + } } } Index: System.CodeDom/CodeMemberMethod.cs === --- System.CodeDom/CodeMemberMethod.cs (revision 93765) +++ System.CodeDom/CodeMemberMethod.cs (working copy) @@ -140,5 +140,13 @@ public event EventHandler PopulateParameters; public event EventHandler PopulateStatements; + + // + // ICodeDomVisitor method + // + internal override void Accept (ICodeDomVisitor visitor) + { + visitor.Visit (this); + } } } Index: System.CodeDom/CodeMemberProperty.cs === --- System.CodeDom/CodeMemberProperty.cs (revision 93765) +++ System.CodeDom/CodeMemberProperty.cs (working copy) @@ -133,5 +133,13 @@ type = value; } } + + // + // ICodeDomVisitor method + // + internal override void Accept (ICodeDomVisitor visitor) + { + visitor.Visit (this); + } } } Index: System.CodeDom/CodeEntryPointMethod.cs
[Mono-dev] System.Xml.Linq
Hello Is anyone know, what happens with System.Xml.Linq implementation? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] System.Xml.Linq
Hi, It's mostly done, except for XStreamingElement (I just haven't looked at this new stuff in depth yet). See mcs/class/System.Xml.Linq. It is built within net_3_5 profile. Atsushi Eno Andrew Koryavchenko wrote: Hello Is anyone know, what happens with System.Xml.Linq implementation? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Schema validation bugs?
Hello Here is exceptions (on .NET runtime all running OK): Failures: 1) Rsdn.SmartApp.Configuration.ConfigServiceTest.NormalRun : System.ArgumentOutOfRangeException : Less than 0 or more than list count. Parameter name: index -1 at System.Collections.ArrayList.RemoveAt (Int32 index) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement ( System.Xml.Schema.XmlSchemaInfo info, System.Object var) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement ( System.Xml.Schema.XmlSchemaInfo info) [0x0] at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x0] at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x0] at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadXmlNode (Boolean wrapped) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode ( System.Object o, System.String qnames) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode ( System.Object o) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadNull () [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance( System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject ( System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot ( System.Xml.Serialization.XmlTypeMapping rootMap) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x0] at System.Xml.Serialization.XmlSerializer.Deserialize ( System.Xml.Serialization.XmlSerializationReader reader) [0x0] 2) Rsdn.SmartApp.Configuration.ConfigServiceTest.SchemaValidationFail : Expected: InvalidOperationException but was ArgumentOutOfRangeException at System.Collections.ArrayList.RemoveAt (Int32 index) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement ( System.Xml.Schema.XmlSchemaInfo info, System.Object var) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement ( System.Xml.Schema.XmlSchemaInfo info) [0x0] at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x0] at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x0] at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadXmlNode (Boolean wrapped) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode ( System.Object o, System.String qnames) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode ( System.Object o) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadNull () [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance( System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject ( System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot ( System.Xml.Serialization.XmlTypeMapping rootMap) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x0] at System.Xml.Serialization.XmlSerializer.Deserialize ( System.Xml.Serialization.XmlSerializationReader reader) [0x0] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Schema validation bugs?
http://mono-project.com/Bugs Andrew Koryavchenko wrote: Hello Here is exceptions (on .NET runtime all running OK): Failures: 1) Rsdn.SmartApp.Configuration.ConfigServiceTest.NormalRun : System.ArgumentOutOfRangeException : Less than 0 or more than list count. Parameter name: index -1 at System.Collections.ArrayList.RemoveAt (Int32 index) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement (System.Xml.Schema.XmlSchemaInfo info, System.Object var) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement (System.Xml.Schema.XmlSchemaInfo info) [0x0] at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x0] at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x0] at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadXmlNode (Boolean wrapped) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode (System.Object o, System.String qnames) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode (System.Object o) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadNull () [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot (System.Xml.Serialization.XmlTypeMapping rootMap) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x0] at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x0] 2) Rsdn.SmartApp.Configuration.ConfigServiceTest.SchemaValidationFail : Expected: InvalidOperationException but was ArgumentOutOfRangeException at System.Collections.ArrayList.RemoveAt (Int32 index) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement (System.Xml.Schema.XmlSchemaInfo info, System.Object var) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement (System.Xml.Schema.XmlSchemaInfo info) [0x0] at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x0] at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x0] at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadXmlNode (Boolean wrapped) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode (System.Object o, System.String qnames) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode (System.Object o) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadNull () [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot (System.Xml.Serialization.XmlTypeMapping rootMap) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x0] at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x0] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Schema validation bugs?
The problem is in the System.Xml.Linq.XNodeReader Hello Here is exceptions (on .NET runtime all running OK): Failures: 1) Rsdn.SmartApp.Configuration.ConfigServiceTest.NormalRun : System.ArgumentOutOfRangeException : Less than 0 or more than list count. Parameter name: index -1 at System.Collections.ArrayList.RemoveAt (Int32 index) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement ( System.Xml.Schema.XmlSchemaInfo info, System.Object var) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement ( System.Xml.Schema.XmlSchemaInfo info) [0x0] at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x0] at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x0] at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadXmlNode (Boolean wrapped) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode ( System.Object o, System.String qnames) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode ( System.Object o) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadNull () [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance( System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject( System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot ( System.Xml.Serialization.XmlTypeMapping rootMap) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot() [0x0] at System.Xml.Serialization.XmlSerializer.Deserialize ( System.Xml.Serialization.XmlSerializationReader reader) [0x0] 2) Rsdn.SmartApp.Configuration.ConfigServiceTest.SchemaValidationFail : Expected: InvalidOperationException but was ArgumentOutOfRangeException at System.Collections.ArrayList.RemoveAt (Int32 index) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement ( System.Xml.Schema.XmlSchemaInfo info, System.Object var) [0x0] at System.Xml.Schema.XmlSchemaValidator.ValidateEndElement ( System.Xml.Schema.XmlSchemaInfo info) [0x0] at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x0] at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x0] at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadXmlNode (Boolean wrapped) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode ( System.Object o, System.String qnames) [0x0] at System.Xml.Serialization.XmlSerializationReader.UnknownNode ( System.Object o) [0x0] at System.Xml.Serialization.XmlSerializationReader.ReadNull () [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance( System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject( System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot ( System.Xml.Serialization.XmlTypeMapping rootMap) [0x0] at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot() [0x0] at System.Xml.Serialization.XmlSerializer.Deserialize ( System.Xml.Serialization.XmlSerializationReader reader) [0x0] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Gdk and Cygwin
Hi, I am in the unfortunate position of having to run Windows because my company uses exchange and will not open IMAP or POP so I can read mail from Thunderbird. So I run VMWare on Windows with an OpenSuse VM. I run CygWin and use SSH to forward the display back to Windows/Cygwin. It works amazing well as long as I close things regularly, because there are some memory leaks somewhere. I have a dual headed display because having two monitors allows me to spread my mess which is the point of a big desktop. Getting to the point: Gdk.Screen s = Gdk.Screen.Default; if (2 != s.NMonitors) { Console.Writeline(Where did it go?); } Given the complexity of the scenario, I doubt it is in the Mono layer, but I figured I would report it here, because I don't belong to any other lists. The number of monitors is but one... The size is the whole area. Maximizing works as expected (stays on one monitor). I can span across monitors. It mostly works, just the number of monitors is wrong. Thanks, Vlad smime.p7s Description: S/MIME cryptographic signature ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Control-C handler
On Fri, 2008-01-11 at 14:57 -0500, Jonathan Pryor wrote: What exactly would be a sane interface to ignore a signal aside from e.g. Stdlib.signal(Signum.SIGINT, Stdlib.SIG_IGN) (and/or setting the default or error handler for the specified signal)? After talking on IRC, the sane interface is to provide Stdlib.signal_default(), Stdlib.signal_error(), and Stdlib.signal_ignore() methods instead of using Stdlib.signal() with SIG_DFL, SIG_ERR, and SIG_DFL. This is safer, as we can just entirely obsolete Stdlib.signal() now (which implies things that can't be safely supported, like actual delegate support). Other major changes include thread safety within the UnixSignal C implementation, no dynamic memory allocation, and removal of the secondary thread for signal delivery mechanism. UnixSignal.WaitOne() still requires one pipe per invocation. Patches attached, along with my test program. - Jon Index: Mono.Unix.Native/Stdlib.cs === --- Mono.Unix.Native/Stdlib.cs (revision 92060) +++ Mono.Unix.Native/Stdlib.cs (working copy) @@ -454,6 +454,9 @@ private static extern IntPtr sys_signal (int signum, IntPtr handler); [CLSCompliant (false)] + [Obsolete (This is not safe; + +use Mono.Unix.UnixSignal for signal delivery + +or signal_default(), signal_error(), or signal_ignore())] public static SignalHandler signal (Signum signum, SignalHandler handler) { int _sig = NativeConvert.FromSignum (signum); @@ -494,6 +497,30 @@ #endif } + public static int signal_default (Signum signal) + { + IntPtr r = sys_signal (NativeConvert.FromSignum (signal), _SIG_DFL); + if (r == _SIG_ERR) +return -1; + return 0; + } + + public static int signal_error (Signum signal) + { + IntPtr r = sys_signal (NativeConvert.FromSignum (signal), _SIG_ERR); + if (r == _SIG_ERR) +return -1; + return 0; + } + + public static int signal_ignore (Signum signal) + { + IntPtr r = sys_signal (NativeConvert.FromSignum (signal), _SIG_IGN); + if (r == _SIG_ERR) +return -1; + return 0; + } + [DllImport (LIBC, CallingConvention=CallingConvention.Cdecl, EntryPoint=raise)] private static extern int sys_raise (int sig); Index: Mono.Unix.Native/ChangeLog === --- Mono.Unix.Native/ChangeLog (revision 92274) +++ Mono.Unix.Native/ChangeLog (working copy) @@ -1,3 +1,10 @@ +2008-01-24 Jonathan Pryor [EMAIL PROTECTED] + + * Stdlib.cs: Obsolete Stdlib.signal(), as it's not safe; see also: + http://lists.ximian.com/pipermail/mono-devel-list/2008-January/026501.html + http://lists.ximian.com/pipermail/mono-devel-list/2008-January/026503.html + Add signal_default(), signal_error(), signal_ignore() as replacements. + 2008-01-05 Jonathan Pryor [EMAIL PROTECTED] * Syscall.cs: Add ST_NOEXEC, ST_REMOUNT, ST_BIND to MountFlags. Patch from Index: Mono.Posix.dll.sources === --- Mono.Posix.dll.sources (revision 92060) +++ Mono.Posix.dll.sources (working copy) @@ -25,6 +25,7 @@ ./Mono.Unix/UnixPath.cs ./Mono.Unix/UnixPipes.cs ./Mono.Unix/UnixProcess.cs +./Mono.Unix/UnixSignal.cs ./Mono.Unix/UnixStream.cs ./Mono.Unix/UnixSymbolicLinkInfo.cs ./Mono.Unix/UnixUserInfo.cs Index: ChangeLog === --- ChangeLog (revision 92060) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2008-01-10 Jonathan Pryor [EMAIL PROTECTED] + + * Mono.Posix.dll.sources: Add Mono.Unix/UnixSignal.cs. + 2006-10-24 Jonathan Pryor [EMAIL PROTECTED] * Makefile: Don't build make-map.exe. Index: Mono.Unix/UnixSignal.cs === --- Mono.Unix/UnixSignal.cs (revision 0) +++ Mono.Unix/UnixSignal.cs (revision 0) @@ -0,0 +1,142 @@ +// +// Mono.Unix/UnixSignal.cs +// +// Authors: +// Jonathan Pryor ([EMAIL PROTECTED]) +// +// (C) 2008 Novell, Inc. +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// Software), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR
[Mono-dev] Bug in todays WebBrowser commit
There is a bug in the todays commit to Windows Forms Webbrowser: + // from http://www.w3.org/TR/html401/index/elements.html + public bool CanHaveChildren { + get { + string tag = this.TagName; + switch (tag.ToLower ()) { + case area: + case base: + case basefont: + case br: + case col: + case frame: + case hr: + case img: + case input: + case isindex: + case link: + case meta: + case param: + return false; + break; + default: + return true; + break; + } + } + } It should be tag.ToLowerInvariant () because HTML-Tags are not dependent on the current system locale ;) Greetings Andreas ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Bug in todays WebBrowser commit
On 1/24/08, Andreas Nahr [EMAIL PROTECTED] wrote: It should be tag.ToLowerInvariant () because HTML-Tags are not dependent on the current system locale ;) Good catch. andreia ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Gdk and Cygwin option B for exchange support
Ximian, the company that used to sponser Mono, and still does after being swallowed by Novell, used to sell a product called I think, Ximian Connector, which was also aquired by Novell. The product allowed, I think, Linux clients to connect to Exchange servers. I don't know what it cost, or if it is even still supported by Novell. Dennis Message: 1 Date: Thu, 24 Jan 2008 14:43:36 -0500 From: Vladimir Giszpenc Subject: [Mono-dev] To: Message-ID: Content-Type: text/plain; charset=us-ascii Hi, I am in the unfortunate position of having to run Windows because my company uses exchange and will not open IMAP or POP so I can read mail from Thunderbird. So I run VMWare on Windows with an OpenSuse VM. I run CygWin and use SSH to forward the display back to Windows/Cygwin. It works amazing well as long as I close things regularly, because there are some memory leaks somewhere. - Never miss a thing. Make Yahoo your homepage.___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list