Sebastien Pouliot [Fri, 27 Jan 2006 16:41:26 +0000 (16:41 -0000)]
2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
* RegionNonRectTest.cs: Updated comments on a test that fails on both
1.x and 2.0 MS runtime.
* TestFont.cs: Converted tests to NUnit 2.2 and added descriptions to
each asserts.
svn path=/trunk/mcs/; revision=56169
Raja R Harinath [Fri, 27 Jan 2006 16:11:48 +0000 (16:11 -0000)]
Fix couple of typos: I forgot to save the final version before committing
svn path=/trunk/mono/; revision=56168
Senganal T [Fri, 27 Jan 2006 15:54:36 +0000 (15:54 -0000)]
2006-01-27 Senganal T <tsenganal@novell.com>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
- Modified GetSqlMoney () , to set the precision and Scale correctly.
- Modified ProcessColumnDetails , to set the schema values correctly.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsDataColumn.cs : Added some default values for the column schema
* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Corrected a failing testcase.
* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs : corrected a failing testcase
* System.Data/System.Data.SqlTypes/SqlDateTime : Corrected the MaxValue for SqlDateTime
* System.Data/System.Data.Common/DbDataAdapter.cs :
- Modified schema population to follow MissingSchemaAction and MissingMappingAction
- Add a column to the Primary Key only if its not a hidden key
- Added some argument checks
- Removed some redundant code
* System.Data/System.Data.Common/DataAdapter :
- Added argument checks
* System.Data/System.Data.Common/ExceptionHelper :
- Added InvalidEnumException , a helper function to print error msg
* System.Data/System.Data.SqlClient/SqlCommandBuilder.cs :
- Modified CreateUpdateCommand,CreateDeleteCommand , to not include
column name in the query if its a expression col.
Also, modified the queries to match the generated queries in ms.net
* System.Data/System.Data.SqlClient/SqlCommand.cs :
- Modifed Prepare, to check if Parameter is explicitly initialized
* System.Data/System.Data.SqlClient/SqlParameter.cs :
- Added CheckIfInitialized : Checks if datatype is explicitly set and
non-zero size is set for variable datatypes.
* System.Data/System.Data.SqlClient/SqlDataReader.cs :
- Added code for GetSqlBinary ()
- Fixed GetFieldCount ()
- Added more checks and exceptions.
Fixes most of the failing SqlClient Provider Tests .
svn path=/trunk/mcs/; revision=56167
Ankit Jain [Fri, 27 Jan 2006 15:38:01 +0000 (15:38 -0000)]
* get.c (get_methodref_signature): Remove 'context' parameter.
Update call sites.
* get.h (get_methodref_signature): Update.
* dump.c (dump_table_memberref): Update.
svn path=/trunk/mono/; revision=56166
Gonzalo Paniagua Javier [Fri, 27 Jan 2006 14:56:46 +0000 (14:56 -0000)]
added .dll to the list of forbidden files
svn path=/trunk/mono/; revision=56165
Gonzalo Paniagua Javier [Fri, 27 Jan 2006 14:56:12 +0000 (14:56 -0000)]
added .dll to the list of forbidden files
svn path=/trunk/mono/; revision=56164
Sebastien Pouliot [Fri, 27 Jan 2006 14:42:22 +0000 (14:42 -0000)]
GraphicsPath.cs: Removed TODO on Flatten methods (now supported in libgdiplus). Added a private constant for FlatnessDefault (0.25). Added MonoTODO on IsVisible* methods (not supported in libgdiplus).
svn path=/trunk/mcs/; revision=56163
Zoltan Varga [Fri, 27 Jan 2006 14:27:40 +0000 (14:27 -0000)]
2006-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (mono_print_thread_dump): Fix non x86 builds.
svn path=/trunk/mono/; revision=56161
Raja R Harinath [Fri, 27 Jan 2006 13:32:12 +0000 (13:32 -0000)]
In metadata:
Fix tests/find-method.2.il
* loader.c (find_method, find_method_in_class): Remove is_inflated
argument. Revert 2006-01-18 change.
(method_from_memberref) [MONO_MEMBERREF_PARENT_TYPESPEC]: If type
is generic, search for method in its generic definition.
* class.c (mono_class_setup_vtable_general): Print generic
arguments of generic types in debugging printf.
In tests:
* Makefile.am (TEST_PROG_RUN, JITTEST_PROG_RUN): Don't set MONO_PATH.
(with_mono_path2, RUNTIME2, GMCS, ILASM2): New.
(TEST_CS2_SRC, TEST_IL2_SRC): New.
(EXTRA_DIST): Add them.
(testjit-default, testjit-net_2_0): New. Copies of old testjit,
updated to use appropriate runtimes.
(testjit): Depend on them.
svn path=/trunk/mono/; revision=56160
Ankit Jain [Fri, 27 Jan 2006 13:01:55 +0000 (13:01 -0000)]
* ILParser.jay (formal_typars_clause): Allow generics only for NET_2_0 profile.
(typars_clause): Likewise.
svn path=/trunk/mcs/; revision=56159
Jordi Mas i Hernandez [Fri, 27 Jan 2006 11:41:25 +0000 (11:41 -0000)]
2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
* gdipFunctions.cs: New gdiplus imports
* Font.cs: Use gdiplus calls to get font height and size
svn path=/trunk/mcs/; revision=56157
Jordi Mas i Hernandez [Fri, 27 Jan 2006 11:28:27 +0000 (11:28 -0000)]
2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
* Adds PrintFontSample.cs
svn path=/trunk/mcs/; revision=56155
Atsushi Eno [Fri, 27 Jan 2006 10:22:40 +0000 (10:22 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
some kind of regression under mcs/tests/xml-025.cs.
svn path=/trunk/mcs/; revision=56153
Atsushi Eno [Fri, 27 Jan 2006 09:32:28 +0000 (09:32 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlAttributeCollection.cs :
Replaced all Nodes.Count with Count (it could avoid extraneous
ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
was extraneously done against all attribute nodes and thus there
was a plenty of call to Value.
* XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
violation.
svn path=/trunk/mcs/; revision=56152
Atsushi Eno [Fri, 27 Jan 2006 08:38:28 +0000 (08:38 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlNode.cs,
XmlDocument.cs,
XmlAttribute.cs,
XmlElement.cs :
Added internal AppendChild() override that omites node type
checking, and used it in many places.
svn path=/trunk/mcs/; revision=56151
Atsushi Eno [Fri, 27 Jan 2006 08:06:49 +0000 (08:06 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlDocument.cs : optimized ReadAttributeNode() to not call
MoveToAttribute() unneccesarily (call it only when ReadNode() is
called on an attribute node).
svn path=/trunk/mcs/; revision=56150
Atsushi Eno [Fri, 27 Jan 2006 07:06:09 +0000 (07:06 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlNode.cs :
in get_InnerText(), avoid extraneous StringBuilder creation.
svn path=/trunk/mcs/; revision=56149
Atsushi Eno [Fri, 27 Jan 2006 06:29:26 +0000 (06:29 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* System.Xml.dll.sources : added XmlIteratorNodeList.cs.
* XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
It does not iterate all nodes in advance.
* XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
svn path=/trunk/mcs/; revision=56148
Peter Dennis Bartok [Fri, 27 Jan 2006 04:57:12 +0000 (04:57 -0000)]
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
Removed GetMenuDC and ReleaseMenuDC methods; replaced
by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
* Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
* InternalWindowManager.cs: Added use of PaintEventStart/End to
handling of WM_NCPAINT message, now passing the PaintEventArgs to
the PaintWindowDecorations method
* MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
* MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
* MenuAPI.cs: Made tracker window invisible
* XplatUIWin32.cs:
- Removed GetMenuDC and ReleaseMenuDC methods
- Implemented the client=false path for PaintEventStart and
PaintEventEnd
svn path=/trunk/mcs/; revision=56147
Chris Toshok [Fri, 27 Jan 2006 04:29:20 +0000 (04:29 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* data/net_2_0/machine.config: ignore runtime and startup
sections.
svn path=/trunk/mono/; revision=56146
Peter Dennis Bartok [Fri, 27 Jan 2006 03:41:00 +0000 (03:41 -0000)]
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
* XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
styles
* Form.cs:
- MaximizeBox, MinimizeBox: Recreate the handle when setting
the style
- CreateParams: Reworked the styles to match MS look'n'feel,
removed automatic setting of MinimizeBox, MaximizeBox, etc. via
the WS_OVERLAPPEDWINDOW style. This fixes #76823.
svn path=/trunk/mcs/; revision=56144
Peter Dennis Bartok [Fri, 27 Jan 2006 02:53:23 +0000 (02:53 -0000)]
- Oops, forgot to check in
svn path=/trunk/mcs/; revision=56143
Jonathan Pryor [Fri, 27 Jan 2006 02:44:09 +0000 (02:44 -0000)]
* UnixMarshal.cs: Check for null arguments in PtrToString() and
PtrToStringArray().
svn path=/trunk/mcs/; revision=56140
Chris Toshok [Fri, 27 Jan 2006 02:20:08 +0000 (02:20 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* WebEncoding.cs: rework this so we cache the section, and so we
swallow exceptions based on a broken configuration.
svn path=/trunk/mcs/; revision=56139
Chris Toshok [Fri, 27 Jan 2006 02:18:12 +0000 (02:18 -0000)]
add HttpConfigurationSystem.cs
svn path=/trunk/mcs/; revision=56138
Chris Toshok [Fri, 27 Jan 2006 02:17:41 +0000 (02:17 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* HttpConfigurationSystem.cs: new class that gets sections from
web.config files.
* WebConfigurationManager.cs: change a lot of the
NotImplementedExceptions to NotSupportedExceptions.
(AppSettings): implement by just returning
ConfigurationManager.AppSettings (note this is broken because
ConfigurationManager.AppSettings are read-only, but it works for
reading.)
(ConnectionStrings): same (and probably broken in the same way..)
(Init): replace the 2.0 IInternalConfigSystem with our
HttpConfigurationSystem.
* WebConfigurationHost.cs: add a comment about how things are
likely to work in the face of IRemoteWebConfigurationHostServer.
(CreateConfigurationContext): return a WebContext instance.
svn path=/trunk/mcs/; revision=56137
Chris Toshok [Fri, 27 Jan 2006 02:10:44 +0000 (02:10 -0000)]
Add ClientConfigurationSystem.cs to the build
svn path=/trunk/mcs/; revision=56136
Chris Toshok [Fri, 27 Jan 2006 02:10:20 +0000 (02:10 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* SectionGroupInfo.cs (ReadContent): handle "location" (seemingly)
correctly.
* InternalConfigurationRoot.cs: misc logical additions. still
isn't useful.
* ConfigurationManager.cs (OpenExeConfigurationInternal): throw an
exception if both calling_assembly and exePath are null. Allow
the exePath to be a path to a config file as well, checking to see
if it ends in .config before appending.
(OpenExeConfiguration): stop blindly passing
Assembly.GetCallingAssembly. I'm assuming this will likely break
.dll.config usage. need to investigate that (and write more unit
tests.)
(GetSection): call configSystem.GetSection.
(RefreshSection): call configSystem.RefreshSection.
(ChangeConfigurationSystem): modeled after the
ConfigurationSettings System.Web hack - allow
WebConfigurationManager to replace the current
IInternalConfigSystem.
* InternalConfigurationHost.cs (InternalConfigurationHost): make
abstract, and remove all the NotImplenmentedException's.
* ConfigurationElement.cs (DeserializeElement): store off the xml
namespace if there is one.
(SerializeElement): write out the namespace if there was one.
* ClientConfigurationSystem.cs: new class, based on some stack
traces I've seen in tests. Kinda (well, not *kinda*..) hacky.
* Configuration.cs (NamespaceDeclared): implement.
(Load): don't swallow all exceptions, just the ones raised when we
open the stream for reading.
(ReadConfigFile): handle xmlns.
svn path=/trunk/mcs/; revision=56135
Chris Toshok [Fri, 27 Jan 2006 01:54:16 +0000 (01:54 -0000)]
clean up
svn path=/trunk/mcs/; revision=56134
Peter Dennis Bartok [Fri, 27 Jan 2006 00:46:40 +0000 (00:46 -0000)]
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs(GetWindowState): Now throwing an exception when the
window is not mapped, since otherwise every form that's being
created is considered minimized, which is wrong.
* Form.cs: Catching the exception and returning our internal value
instead
svn path=/trunk/mcs/; revision=56133
Peter Dennis Bartok [Fri, 27 Jan 2006 00:35:09 +0000 (00:35 -0000)]
- Added bug number to changelog fix entry
svn path=/trunk/mcs/; revision=56132
Peter Dennis Bartok [Fri, 27 Jan 2006 00:34:15 +0000 (00:34 -0000)]
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
SetWindowMinMax() to have means to tell the driver about the minimum,
maximum and maximized state window sizes. (Part of the fix for #76485)
* Form.cs:
- Implemented tracking of minimum and maximum window size, now calling
new SetWindowMinMax() driver method to tell the driver (Part of the
fix for #76485)
- Finished handling of WM_GETMINMAXINFO method, now setting all values
(Completes fix for #76485)
- Calling new SetWindowMinMax driver method when the handle for a
form is created, to make sure the driver knows about it even if
the values have been set before the window was created
- Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
to avoid messing up our anchoring calculations (partial fix
for #77355)
* XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
* XplatUIX11.cs:
- Added _NET_WM_STATE_HIDDEN property for detecting minimized state
- Improved GetWindowState() to detect 'Minimized' state on Metacity
(and presumably other freedesktop.org compliant WMs). Left the
assumption unmapped=minimized, needed for SetVisible to work.
- Now setting the window state when creating windows
- Fixed SetVisible to consider/set the window state when mapping
a Form. We cannot set the state before it's mapped, and we cannot
use Form.WindowState once it's mapped (since it would ask the
driver and get 'normal'. Therefore, we grab the state before
mapping, map, and then set state.
- Implmemented SetWindowMinMax method; Metacity does not seem to
honor the ZoomHints, though.
* XplatUIWin32.cs:
- Removed MINMAXINFO (moved to XplatUIStructs)
- Added SetWindowMinMax stub (on Win32 the only way to set that
information is in response to the WM_GETMINMAXINFO message, which
is handled in Form.cs)
- Added logic to SetVisible to set the proper window state when a
form is made visible
svn path=/trunk/mcs/; revision=56131
Gonzalo Paniagua Javier [Fri, 27 Jan 2006 00:18:43 +0000 (00:18 -0000)]
2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* WebClient.cs: (2.0) UploadString() returns string, not void.
svn path=/trunk/mcs/; revision=56129
Chris Toshok [Thu, 26 Jan 2006 23:23:49 +0000 (23:23 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* AssemblyResourceLoader.cs (GetResourceUrl): if the assembly
corresponds to an on-disk file, append the last write time to the
url so we can enable client side caching.
(ProcessRequest): tell the client to cache the url for 1 year, and
have it vary by 'r' (resource name) and 't' (assembly timestamp).
svn path=/trunk/mcs/; revision=56127
Gonzalo Paniagua Javier [Thu, 26 Jan 2006 23:11:14 +0000 (23:11 -0000)]
2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpResponse.cs: use UInt64.Parse for content length. In AppendHeader,
set cache_control through the property to update the cachebility
accordingly. When using the cached headers, don't add again all the
headers to that collection.
* HttpCacheVaryByParams.cs: if there are no params, return null.
Otherwise we get an empty 'Vary' header.
svn path=/trunk/mcs/; revision=56125
Jackson Harper [Thu, 26 Jan 2006 22:19:43 +0000 (22:19 -0000)]
* Control.cs (BeginInvoke): Automagically handle EventHandlers
* the
same way we handle them with Invoke.
svn path=/trunk/mcs/; revision=56124
Jonathan Pryor [Thu, 26 Jan 2006 21:02:33 +0000 (21:02 -0000)]
* ChangeLog: Started
* mono-shlib-cop.1: Document another BUG/design issue that it doesn't check
for; formatting/style changes.
svn path=/trunk/mono/; revision=56121
Miguel de Icaza [Thu, 26 Jan 2006 19:56:15 +0000 (19:56 -0000)]
Commit temporary fix for static partial classes (bug 77027) from Atsushi
svn path=/trunk/mcs/; revision=56118
Sebastien Pouliot [Thu, 26 Jan 2006 18:59:07 +0000 (18:59 -0000)]
2006-01-26 Sebastien Pouliot <sebastien@ximian.com>
* FontFamily.cs: Free the memory allocated with Marshal.AllocHGlobal.
* Region.cs: Updated TODO to reflect current status.
svn path=/trunk/mcs/; revision=56117
Miguel de Icaza [Thu, 26 Jan 2006 18:53:19 +0000 (18:53 -0000)]
Update man page
svn path=/trunk/mono/; revision=56116
Boris Kirzner [Thu, 26 Jan 2006 17:35:04 +0000 (17:35 -0000)]
Tests refactoring for TARGET_JVM.
svn path=/trunk/mcs/; revision=56114
Zoltan Varga [Thu, 26 Jan 2006 17:20:49 +0000 (17:20 -0000)]
svn path=/trunk/mcs/; revision=56111
Zoltan Varga [Thu, 26 Jan 2006 17:19:59 +0000 (17:19 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* DebuggerNonUserCodeAttribute.cs: New file.
svn path=/trunk/mcs/; revision=56110
Zoltan Varga [Thu, 26 Jan 2006 17:19:01 +0000 (17:19 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* corlib.dll.sources: Add DebuggerNonUserCodeAttribute.cs and
SuppressMessageAttribute.cs.
svn path=/trunk/mcs/; revision=56109
Zoltan Varga [Thu, 26 Jan 2006 16:10:25 +0000 (16:10 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* thread-dump.cs: New file.
svn path=/trunk/mono/; revision=56108
Zoltan Varga [Thu, 26 Jan 2006 16:08:36 +0000 (16:08 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* mini.h mini.c mini-exceptions.c: Add thread dump support. Fixes
#75145.
svn path=/trunk/mono/; revision=56107
Boris Kirzner [Thu, 26 Jan 2006 16:01:10 +0000 (16:01 -0000)]
Added ifdefs, projects, solutions and support for TARGET_JVM.
svn path=/trunk/mcs/; revision=56106
Zoltan Varga [Thu, 26 Jan 2006 15:54:04 +0000 (15:54 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* object-internals.h (MonoThread): Add 'thread_dump_requested' field.
* threads.c (mono_threads_request_thread_dump): New helper function.
svn path=/trunk/mono/; revision=56105
Svetlana Zholkovsky [Thu, 26 Jan 2006 14:02:32 +0000 (14:02 -0000)]
BinaryCore.cs: TARGET_JVM related changes
svn path=/trunk/mcs/; revision=56101
Konstantin Triger [Thu, 26 Jan 2006 12:56:49 +0000 (12:56 -0000)]
TARGET_JVM: catch ObjectDisposedException in addition to ThreadAbortException; optimizing byte[] <-> sbyte[] conversion
svn path=/trunk/mcs/; revision=56097
Robert Jordan [Thu, 26 Jan 2006 07:50:03 +0000 (07:50 -0000)]
2006-01-15 Robert Jordan <robertj@gmx.net>
* WebUIValidation.js (CustomValidatorEvaluateIsValid):
Allow empty/missing ControlToValidate attributes.
* WebUIValidation.js (ValidatorSucceeded):
Hide validator's view. Fixes bug #77261.
svn path=/trunk/mcs/; revision=56093
Chris Toshok [Thu, 26 Jan 2006 04:10:03 +0000 (04:10 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* data/net_2_0/machine.config: ignore mscorlib,
system.runtime.remoting, and strongNames sections.
svn path=/trunk/mono/; revision=56092
Atsushi Eno [Thu, 26 Jan 2006 03:42:52 +0000 (03:42 -0000)]
2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
* mono-api-info.cs
mono-api-diff.cs : show MethodAttributes difference (as long as
they make sense).
svn path=/trunk/mcs/; revision=56091
Miguel de Icaza [Thu, 26 Jan 2006 01:47:04 +0000 (01:47 -0000)]
Fix the build
svn path=/trunk/mcs/; revision=56089
Raja R Harinath [Thu, 26 Jan 2006 00:52:10 +0000 (00:52 -0000)]
* get.c (stringify_double): Simplify, and avoid 'E' too.
svn path=/trunk/mono/; revision=56088
Peter Dennis Bartok [Thu, 26 Jan 2006 00:38:33 +0000 (00:38 -0000)]
2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs:
- Added tracking of window state so CreateParams can return
the appropriate style
- Moved setting of WS_CAPTION style in CreateParams to allow
styles without caption
* DataGridTextBoxColumn.cs: We are now also creating the TextBox
control if the TextBox property is accessed. Fixes #77345
* Control.cs:
- get_Created: now uses is_disposed and is_created to determine
return value (suggested by Jackson)
- CreateHandle: No longer exits if the handle is being recreated
- RecreateHandle: If the handle is not yet created call the
appropriate method to create either control or handle. If the
control is already created CreateHandle will simply exit instead
of just creating the handle
* Hwnd.cs: Removed expose_pending tracking, no longer needed since we
now SendMessage WM_DESTROY directly to the control when DestroyWindow
is called.
* XplatUIX11.cs:
- When DestroyWindow is called, instead of waiting for the
DestroyNotification from X11, we directly post it to the WndProc
and immediately dispose the hwnd object.
Same applies to DestroyChildWindows, and this obsoletes the
expose_pending tracking. Contrary to Win32 behaviour we destroy our
child windows before our own, to avoid X11 errors.
- Removed the direct sending of WM_PAINT on UpdateWindow
* XplatUIWin32.cs:
- Reworked DoEvents and GetMessage to allow access to internal queue
even when trying non-blocking access to the queue. Fixes #77335.
Based on a patch suggestion by Don Edvalson. The new private
GetMessage can now also be used as a backend for a PeekMessage
frontend version.
* XplatUI.cs: Improved debug output for CreateWindow
svn path=/trunk/mcs/; revision=56087
Chris Toshok [Wed, 25 Jan 2006 23:49:20 +0000 (23:49 -0000)]
add two tests for <location> elements at various levels in a configuration
svn path=/trunk/mcs/; revision=56086
Chris Toshok [Wed, 25 Jan 2006 23:26:09 +0000 (23:26 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* HttpApplication.cs (Start): wrap InitOnce in a try/catch block,
and if there's a configuration error, output it and end things
immediately.
svn path=/trunk/mcs/; revision=56085
Gonzalo Paniagua Javier [Wed, 25 Jan 2006 23:14:48 +0000 (23:14 -0000)]
new file and fixes
svn path=/trunk/mcs/; revision=56084
Gonzalo Paniagua Javier [Wed, 25 Jan 2006 23:10:15 +0000 (23:10 -0000)]
2006-01-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* VirtualPathProviderTest.cs: new tests.
svn path=/trunk/mcs/; revision=56083
Chris Toshok [Wed, 25 Jan 2006 22:53:38 +0000 (22:53 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* ConfigInfo.cs (ThrowException): throw a
ConfigurationErrorsException, not a ConfigurationException.
* SectionGroupInfo.cs (ReadContent): throw an exception
unconditionally if we see a <location>. they aren't valid in
section groups.
svn path=/trunk/mcs/; revision=56082
Gonzalo Paniagua Javier [Wed, 25 Jan 2006 22:02:19 +0000 (22:02 -0000)]
new source files
svn path=/trunk/mcs/; revision=56077
Gonzalo Paniagua Javier [Wed, 25 Jan 2006 22:01:59 +0000 (22:01 -0000)]
2006-01-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* VirtualDirectory.cs:
* VirtualPathProvider.cs:
* VirtualFileBase.cs:
* VirtualFile.cs: implemented this base classes.
* HostingEnvironment.cs: implemented a few properties by using the ones
in HttpRuntime.
svn path=/trunk/mcs/; revision=56076
Chris Toshok [Wed, 25 Jan 2006 21:51:18 +0000 (21:51 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* ClientScriptManager.cs (RegisterClientScriptResource): last
patch, I swear. How can 1 line of code have 3 bugs?
svn path=/trunk/mcs/; revision=56074
Jackson Harper [Wed, 25 Jan 2006 21:35:11 +0000 (21:35 -0000)]
* Help.cs: Allow param to be null. Patch by Don Edvalson.
svn path=/trunk/mcs/; revision=56073
Ankit Jain [Wed, 25 Jan 2006 21:23:47 +0000 (21:23 -0000)]
* get.c (stringify_double): Remove trailing '.' if it has 'e'.
svn path=/trunk/mono/; revision=56068
Miguel de Icaza [Wed, 25 Jan 2006 21:18:20 +0000 (21:18 -0000)]
2006-01-25 Miguel de Icaza <miguel@novell.com>
* ecore.cs: Introduce an error report that we were not catching
before, if not silent, we must report the error. Gonzalo ran into
it.
svn path=/trunk/mcs/; revision=56065
Chris Toshok [Wed, 25 Jan 2006 21:13:53 +0000 (21:13 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* ClientScriptManager.cs (RegisterClientScriptResource): gah, fix
problem with last commit - unquote "resourceName" so it uses the
parameter instead of the string constant.
svn path=/trunk/mcs/; revision=56063
Rafael Teixeira [Wed, 25 Jan 2006 20:17:26 +0000 (20:17 -0000)]
2006-01-23 Jelmer Vernooij <jelmer@samba.org>
* Test/tests/typemembers/EventP.vb: Add tests that check for
more complex constructions in AddHandler / RemoveHandler.
* Test/tests/typemembers/EventO.vb: Test for parsing a WITHEVENTS
variable declaration after it is being used in a 'Handles ...' clause.
svn path=/trunk/mcs/; revision=56060
Chris Toshok [Wed, 25 Jan 2006 18:47:48 +0000 (18:47 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* data/net_2_0/machine.config: for system.web, add default
<authorization> section that allows everything. also, add
System.Configuration to system.web/compilation/assemblies.
svn path=/trunk/mono/; revision=56057
Chris Toshok [Wed, 25 Jan 2006 18:44:55 +0000 (18:44 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* AuthorizationSection.cs (IsValidUser): instead of a blanket
false for a null user, just set the username to "" and short
circuit out the check for roles.
svn path=/trunk/mcs/; revision=56055
Chris Toshok [Wed, 25 Jan 2006 17:58:20 +0000 (17:58 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* AuthorizationRule.cs (CheckUser): handle * and ?, and use
String.Compare instead of ==.
(CheckVerb): use String.Compare instead of ==.
* AuthorizationSection.cs (IsValidUser): return false for a null
user.
svn path=/trunk/mcs/; revision=56052
Chris Toshok [Wed, 25 Jan 2006 16:58:04 +0000 (16:58 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* KeyValueInternalCollection.cs: don't use a nested collection,
just defer to our base class. This fixes usage of
ConfigurationManager.AppSettings.Keys.
svn path=/trunk/mcs/; revision=56049
Atsushi Eno [Wed, 25 Jan 2006 15:36:37 +0000 (15:36 -0000)]
2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
* XmlWriter.cs : Dispose() is protected.
* XmlSchemaValidationException.cs : fixed .ctor() signatures.
* XPathNavigator.cs : fixed IsNode signature found by updated
corcompare.
svn path=/trunk/mcs/; revision=56048
Atsushi Eno [Wed, 25 Jan 2006 15:34:17 +0000 (15:34 -0000)]
2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
* XsltContext.cs : fixed method signatures found by updated
corcompare.
svn path=/trunk/mcs/; revision=56047
Ankit Jain [Wed, 25 Jan 2006 14:59:46 +0000 (14:59 -0000)]
* get.c (stringify_double): New. Fix printing of float/doubles to enable
roundtripping.
* get.h (stringify_double): Add new function.
(get_constant): Use stringify_double.
* dis-cil.c (disassemble_cil): Likewise.
svn path=/trunk/mono/; revision=56045
Massimiliano Mantione [Wed, 25 Jan 2006 14:48:17 +0000 (14:48 -0000)]
2006-01-25 Massimiliano Mantione <massi@ximian.com>
* aliasing.c: Fixed aliasing issue on 64 bit archs.
svn path=/trunk/mono/; revision=56043
Raja R Harinath [Wed, 25 Jan 2006 14:31:08 +0000 (14:31 -0000)]
* metadata.c (mono_type_create_from_typespec_full): Fix caching of types.
svn path=/trunk/mono/; revision=56041
Ankit Jain [Wed, 25 Jan 2006 10:45:46 +0000 (10:45 -0000)]
* metadata-internals.h (mono_generic_params_with_ambiguous_names): Add declaration and
move definition to ..
* metadata.c (mono_generic_params_with_ambiguous_names): .. here.
svn path=/trunk/mono/; revision=56037
Ankit Jain [Wed, 25 Jan 2006 10:13:30 +0000 (10:13 -0000)]
In mono/dis:
* get.c (dis_stringify_type): For MVAR/VAR, print number if the generic param
is in the mono_generic_params_with_ambiguous_names table.
In mono/metadata:
* metadata-internals.h (mono_generic_params_with_ambiguous_names): New.
* metadata.c (mono_metadata_load_generic_params): Fill mono_generic_params_with_ambiguous_names
as necessary.
svn path=/trunk/mono/; revision=56036
Paolo Molaro [Wed, 25 Jan 2006 09:19:24 +0000 (09:19 -0000)]
Remove test checks.
svn path=/trunk/mono/; revision=56035
Konstantin Triger [Wed, 25 Jan 2006 08:36:07 +0000 (08:36 -0000)]
redo improved r55895
svn path=/trunk/mcs/; revision=56034
Konstantin Triger [Wed, 25 Jan 2006 08:32:05 +0000 (08:32 -0000)]
refactoring for ColorFormatter Read/Write
svn path=/trunk/mcs/; revision=56033
Atsushi Eno [Wed, 25 Jan 2006 07:23:45 +0000 (07:23 -0000)]
2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
* CultureInfo.cs : Clone() attempted to clone number and date time
formats, thus failed. Fixed bug #77347.
* CultureInfoTest.cs : added test for bug #77347.
svn path=/trunk/mcs/; revision=56032
César Natarén [Wed, 25 Jan 2006 06:01:23 +0000 (06:01 -0000)]
2006-01-25 Cesar Lopez Nataren <cnataren@novell.com>
* FunctionExpression.cs: Set the prefix at resolve time not at
constructor time. Solves a bug related to the use of nested
FunctionExpression's.
2006-01-24 Cesar Lopez Nataren <cnataren@novell.com>
* ast.cs (Function.set_prefix): use InFunction and
GetContainerFunction for retrieving the container function.
* Statement.cs (Return): Implement ICanModifyContext as can return
a FunctionExpression.
svn path=/trunk/mcs/; revision=56030
César Natarén [Wed, 25 Jan 2006 05:49:17 +0000 (05:49 -0000)]
2006-01-24 Cesar Lopez Nataren <cnataren@novell.com>
* FunctionDeclaration.cs: Erase unused method Init.
svn path=/trunk/mcs/; revision=56029
Atsushi Eno [Wed, 25 Jan 2006 04:06:28 +0000 (04:06 -0000)]
2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
* XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
Joshua Tauberer for the hint.
svn path=/trunk/mcs/; revision=56028
Atsushi Eno [Wed, 25 Jan 2006 03:36:13 +0000 (03:36 -0000)]
2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvert.cs : ToString(TimeSpan) should return valid duration
for TimeSpan.Zero, rather than "P". Fixed bug #77350
* XmlConvertTests.cs : added test for bug #77350.
svn path=/trunk/mcs/; revision=56026
Sebastien Pouliot [Wed, 25 Jan 2006 01:45:21 +0000 (01:45 -0000)]
2006-01-24 Sebastien Pouliot <sebastien@ximian.com>
* PKCS12Test.cs: Add a test case where the password is String.Empty
when no password is required to decrypt the structures.
svn path=/trunk/mcs/; revision=56022
Sebastien Pouliot [Wed, 25 Jan 2006 01:44:00 +0000 (01:44 -0000)]
2006-01-24 Sebastien Pouliot <sebastien@ximian.com>
* PKCS12.cs: Consider String.Empty as a null password (e.g. don't
throw an IndexOutOfRangeException). Fix part of bug #77342.
svn path=/trunk/mcs/; revision=56021
Martin Baulig [Wed, 25 Jan 2006 01:43:43 +0000 (01:43 -0000)]
2006-01-25 Martin Baulig <martin@ximian.com>
* debug-debugger.c: Moved the `MonoDebuggerManager' and
`MonoDebuggerThread' typedefs here from mono-debug-debugger.h and
started to cleanup this file a little bit.
svn path=/trunk/mono/; revision=56020
Jackson Harper [Wed, 25 Jan 2006 00:04:39 +0000 (00:04 -0000)]
* ComboBox.cs: Clamp the max value set for the vertical
* scrollbar
when we have a MaxDropItems lower then the selected index.
svn path=/trunk/mcs/; revision=56019
Jonathan Pryor [Tue, 24 Jan 2006 23:46:17 +0000 (23:46 -0000)]
* UnixMarshal.cs (StringToHeap): Return IntPtr.Zero if `s' is null.
svn path=/trunk/mcs/; revision=56018
Jonathan Pryor [Tue, 24 Jan 2006 23:37:33 +0000 (23:37 -0000)]
* UnixMarshal.cs (StringToHeap): Check for null arguments.
svn path=/trunk/mcs/; revision=56015
Miguel de Icaza [Tue, 24 Jan 2006 22:03:30 +0000 (22:03 -0000)]
Fix error number
svn path=/trunk/mcs/; revision=56010
Miguel de Icaza [Tue, 24 Jan 2006 22:02:09 +0000 (22:02 -0000)]
2006-01-23 Miguel de Icaza <miguel@novell.com>
A fix for bug: #76597
* iterators.cs (MoveNextMethod.CreateMethodHost): call
ComputeMethodHost before creating the method, this is a new
requirement.
* anonymous.cs (AnonymousContainer): Now we track all the scopes
that this method references (RegisterScope). The actual scope
where the method is hosted is computed with the ComputeMethodHost
before we create the method.
Moved the Deepest routine here.
(AnonymousContainer.ComputeMethodHost): New routine used to
compute the proper ScopeInfo that will host the anonymous method.
(ScopeInfo): Deal with multiple roots. The problem was that we
did not have a unique root where all ScopeInfos could be hanged
from. Remove `topmost' ScopeInfo, and instead keep an arraylist
of roots.
Remove AdjustMethodScope which is now computed at the end. Remove
LinkScope which did a partial link, instead link all ScopeInfos
before code generation from the new "LinkScopes" routine.
Simplify all the Add* routines as they no longer need to maintain
the tree, they just need to record that they are using variables
from a ScopeInfo.
(IsAncestor, GetAncestorScopes, GetParentScope, LinkScope): New
routines to produce the forest of ScopeInfo trees.
* class.cs (TypeContainer.AppendMethod): This is just like
AddMethod, but ensures that an interface implementation method
(IEnumerable.XXX) is not inserted at the beginning of the queue of
methods, but at the end.
We use this functionality to ensure that the generated MoveNext
method in the iterator class is resolved/emitted before the
enumerator methods created.
This is required because the MoveNext method computes the right
ScopeInfo for the method. And the other methods will eventually
need to resolve and fetch information computed from the anonymous
method.
svn path=/trunk/mcs/; revision=56009
Gonzalo Paniagua Javier [Tue, 24 Jan 2006 21:54:40 +0000 (21:54 -0000)]
2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ListControl.cs: bound checking for Items when loading the control
state, as the number might have been changed on the fly. Patch by
Elliott Draper.
svn path=/trunk/mcs/; revision=56007
Gonzalo Paniagua Javier [Tue, 24 Jan 2006 21:26:19 +0000 (21:26 -0000)]
2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpRequest.cs: fixed the file path when RewritePath is used. Also
add the PathInfo to the Url. Fixes bug #77291.
svn path=/trunk/mcs/; revision=56005
Atsushi Eno [Tue, 24 Jan 2006 20:38:37 +0000 (20:38 -0000)]
2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
* XmlNameEntryCache.cs XmlNameEntry.cs :
Made name entry fields as not read-only. Added Update() to reset
members. Its semantics of Equals() is changed.
Now entry cache is based on Hashtable rather than ArrayList.
It saves heavy iteration in ArrayList.
svn path=/trunk/mcs/; revision=56003
Jackson Harper [Tue, 24 Jan 2006 20:10:40 +0000 (20:10 -0000)]
* Control.cs: Don't allow selection of non visible controls,
* allow
selection of controls without parents.
svn path=/trunk/mcs/; revision=56002