* GCHandle.cs (AddrOfPinnedObject): Use -2 to communicate that the handle is not
pinned. Correct exception message. Fixes#82848.
svn path=/trunk/mcs/; revision=85803
* SafeHandle.cs: Harden this, do not call ReleaseHandle if the
handle is invalid.
* CriticalHandle.cs: Harden this, do not call ReleaseHandle if the
handle is invalid.
svn path=/trunk/mcs/; revision=82260
* DefaultParameterValueAttribute.cs: Move to System.dll.
In System/System.Runtime.InteropServices:
* StandardOleMarshalObject.cs: New .net2.0 class.
* DefaultParameterValueAttribute.cs: Move here from corlib.
svn path=/trunk/mcs/; revision=74124
* SafeHandle.cs: Do not use locks in SafeHandle to protect the
access to the refcount, use Interlocked.CompareExchange. The
locks were the source of problems with domain finalization when
this code was enabled.
This should fix Matt Hargett's bug report with a full `make check'
that reported variations of:
** (../../class/lib/net_2_0/nunit-console.exe:29644): WARNING **:
Finalization of domain <domainname> timed out.
Also, it is a lot lighther.
svn path=/trunk/mcs/; revision=70433
SafeWaitHandle support for WaitHandles (2.0)
A few APIs implemented from Marshal.
2006-12-11 Miguel de Icaza <[email protected]>
* WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
patterns instead of using directly the IntPtr Handle.
Refactor the code to reuse as much as possible, and follow the new
conventions where appropriate.
2006-12-15 Miguel de Icaza <[email protected]>
* Marshal.cs (SecureStringToCoTaskMemAnsi, SecureStringToBSTR,
SecureStringToCoTaskMemUnicode, ZeroFreeCoTaskMemAnsi,
ZeroFreeCoTaskMemUnicode, ZeroFreeGlobalAllocAnsi,
ZeroFreeGlobalAllocUnicode): Implement.
(StringToCoTaskAuto): return the same as Ansi.
The ANSI code is out of sync with Mono, which treats ANSI as
UTF-8.
Code formatting changes
svn path=/trunk/mcs/; revision=69552
* SafeHandle.cs: Fix a handful of bugs, and add tests for them.
Only release the handle if its owned by us. Also throw
ObjectDisposedException's
svn path=/trunk/mcs/; revision=69378
2006-12-11 Miguel de Icaza <[email protected]>
* SafeHandle.cs: Implement finalizer.
DangerousAddRef will now throw an exception if the object was
disposed.
2006-12-10 Miguel de Icaza <[email protected]>
* SafeFileHandle.cs: Implement this one.
svn path=/trunk/mcs/; revision=69296
* SafeHandle.cs: Implement this class.
2006-12-02 Miguel de Icaza <[email protected]>
* SafeFileHandle.cs: Remove the IsInvalid method, as that is
present in the base class.
svn path=/trunk/mcs/; revision=68875
* Marshal.cs: Replaced the *Auto internal calls with managed
variants. Fixed SystemDefaultCharSize to return an OS dependent
value.
svn path=/trunk/mcs/; revision=64659
* ComInteropProxy.cs: Fix default constructor being always
being called.
* Marshal.cs: Implement GetIDispatchForObject.
* __ComObject.cs: Added defintion of IDispatch interface, and
property. Get CLSID of supertype for creation if class not
ComImport attributed (allows for inheritance of RCW).
* MonoType.cs: Implement IsCOMObjectImpl.
svn path=/trunk/mcs/; revision=63630
2006-01-12 Ben Maurer <[email protected]>
* SafeHandleZeroOrMinusOneIsInvalid.cs: Update to RTM api
* SafeFileHandle.cs: Update to RTM api
In System.Runtime.InteropServices:
2006-01-12 Ben Maurer <[email protected]>
* SafeHandle.cs: Update to RTM api
svn path=/trunk/mcs/; revision=55474
2005-11-11 Miguel de Icaza <[email protected]>
* Encoding.cs, UnicodeEncoding.cs: A few 2.x methods.
* StringBuilder.cs (Text): Added serialization support in 2.x.
svn path=/trunk/mcs/; revision=52916
* Marshal.cs: Added null check in SecureStringTo* methods and make
them throw a NotSupportedException otherwise (as existing code must
deal with this anyway). Fixed Uni -> Unicode method name changes.
svn path=/trunk/mcs/; revision=52326
available in 1.0 profile (.NET 1.1).
* VariantWrapper.cs: Class is also exposed in .NET 1.1. Only
serializable in 2.0 profile.
svn path=/trunk/mcs/; revision=48345
* Array.cs: Changed protected ctor to private. Fixes API compatibility
with MS.NET.
* RuntimeFieldHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeMethodHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeTypeHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* Type.cs: Added GetType method and implemented _Type interface.
Fixes API compatibility with MS.NET.
* corlib.dll.sources: Added System.Runtime.InteropServices/
TypeLibImportClassAttribute.cs.
* _Activator.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _Assembly.cs: ComVisible should only be set in 2.0 profile. Added
TypeLibImportClass attribute. Fixes InterfaceType to match MS.NET.
* _AssemblyBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _AssemblyName.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _Attribute.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _ConstructorBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _ConstructorInfo.cs: Fixed InterfaceType to match MS.NET. Added
TypeLibImportClass attribute. Added missing methods.
* _CustomAttributeBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _EnumBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _EventBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _EventInfo.cs: Fixed InterfaceType to match MS.NET. Added
TypeLibImportClass attribute. Added missing methods.
* _FieldBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _FieldInfo.cs: Fixed InterfaceType to match MS.NET. Added
TypeLibImportClass attribute. Added missing methods.
* _ILGenerator.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _LocalBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _MemberInfo.cs: Fixed InterfaceType to match MS.NET. Added
TypeLibImportClass attribute. Added missing methods.
* _MethodBase.cs: Fixed InterfaceType to match MS.NET. Added
TypeLibImportClass attribute. Added missing methods.
* _MethodInfo.cs: Fixed InterfaceType to match MS.NET. Added
TypeLibImportClass attribute. Added missing methods.
* _MethodBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _MethodRental.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _Module.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _ModuleBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _ParameterBuilder.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _ParameterInfo.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _PropertyBuilder.cs: ComVisible should only be setin 2.0 profile.
Added TypeLibImportClass attribute.
* _PropertyInfo.cs: Fixed InterfaceType to match MS.NET. Added
TypeLibImportClass attribute. Added missing methods.
* _SignatureHelper.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _Type.cs: Added TypeLibImportClass attribute. Fixed InterfaceType
to match MS.NET. Added missing method to match MS.NET.
* _Thread.cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* _TypeBuilder:cs: ComVisible should only be set in 2.0 profile.
Added TypeLibImportClass attribute.
* Marshal.cs: Removed MarshalAs attribute from parameter to fix
API compatibility with MS.NET.
* TypeLibImportClassAttribute.cs: Added.
* AssemblyBuilder.cs: Implement _AssemblyBuilder, CA fixes to
correspond with MS.NET
* ConstructorBuilder.cs: Implement _ConstructorBuilder, CA fixes to
correspond with MS.NET
* CustomAttributeBuilder.cs: Implement _CustomAttributeBuilder, CA
fixes to correspond with MS.NET
* EnumBuilder.cs: Implement _EnumBuilder, CA fixes to correspond with
MS.NET
* EventBuilder.cs: Implement _EventBuilder, CA fixes to correspond
with MS.NET
* FieldBuilder.cs: Implement _FieldBuilder, CA fixes to correspond
with MS.NET
* LocalBuilder.cs: Implement _LocalBuilder, CA fixes to correspond
with MS.NET
* MethodBuilder.cs: Implement _MethodBuilder, CA fixes to correspond
with MS.NET
* MethodRental.cs: CA fixes to correspond with MS.NET, implemented
_MethodRental.
* ModuleBuilder.cs: Implement _ModuleBuilder, CA fixes to correspond
with MS.NET
* ILGenerator.cs: Implement _ILGenerator, CA fixes to correspond
with MS.NET
* ParameterBuilder.cs Implement _ParameterBuilder, CA fixes to
correspond with MS.NET
* PropertyBuilder.cs: Implement _PropertyBuilder, CA fixes to
correspond with MS.NET
* SignatureHelper.cs: Implement _SignatureHelper, CA fixes to
correspond with MS.NET
* TypeBuilder.cs: Implement _TypeBuilder, CA fixes to correspond
with MS.NET
* DecimalConstantAttribute.cs: Only mark ctor not CLSCompliant on 2.0
profile to match MS.NET.
* Assembly.cs: Added GetType() method in 1.1 to match MS.NET.
* ConstructorInfo.cs: Added GetType() method in 1.1 to match
MS.NET, implemented _ConstructorInfo.
* EventInfo.cs: Added GetType() method in 1.1 to match MS.NET,
implemented _EventInfo.
* FieldInfo.cs: Added GetType() method in 1.1 to match MS.NET,
implemented _FieldInfo.
* MemberInfo.cs: Added GetType() method in 1.1 to match MS.NET,
implemented _MemberInfo.
* MethodBase.cs: Added GetType() method in 1.1 to match MS.NET,
implemented _MethodBase.
* MethodInfo.cs: Added GetType() method in 1.1 to match MS.NET,
implemented _MethodInfo.
* PropertyInfo.cs: Added GetType() method in 1.1 to match MS.NET,
implemented _PropertyInfo.
* TypeAttributes.cs: CustomFormatMask and CustomFormatClass should
only be exposed in 2.0 profile.
svn path=/trunk/mcs/; revision=48059
* _Exception.cs: That one wasn't backported to 1.1 SP1 by MS. This
should fix a lot of extra reported in the API status pages.
svn path=/trunk/mcs/; revision=45503