New tests.
[mono.git] / mcs / class / System / System.Diagnostics / ChangeLog
index 4e78a92a88bfae5565c2a5fba40d61e370901623..acad4d7b93c5c16b048366b4ae180ee270377ccb 100644 (file)
@@ -1,4 +1,388 @@
-2007-08-08 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
+2010-04-06  Jb Evain  <jbevain@novell.com>
+
+       * Debug.cs: make class static.
+
+2010-04-06  Jb Evain  <jbevain@novell.com>
+
+       * Debug.cs (Assert, WriteLine): add net_4_0 overloads.
+
+2010-03-11  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Debug_2_1.cs: Change type to static to match SL4
+
+2010-01-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * Stopwatch.cs: add new Restart().
+
+2009-11-30  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Debug_2_1.cs: Change type to sealed to match SL2/3
+
+2009-10-12  Zoltan Varga  <vargaz@gmail.com>
+
+       * Process.cs (Dispose): Close the async output/error readers. Fixes #545429.
+
+2009-07-22  Jb Evain  <jbevain@novell.com>
+
+       * ProcessStartInfo.cs: force no-verb on MONOTOUCH.
+
+2009-07-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ProcessStartInfo.cs: HaveEnvVars is enabled by just using the
+       EnvironmentVariables property. Bug #520650 fixed.
+
+2009-05-12  Jonathan Pryor  <jpryor@novell.com>
+
+       * DiagnosticsConfigurationHandler.cs: Use the new
+         TraceSourceInfo(string, SourceLevels, TraceImplSettings) constructor.
+       * TraceSourceInfo.cs: Add a new constructor, 
+         TraceSourceInfo(string, SourceLevels, TraceImplSettings), which adds
+         the DefaultTraceListener w/o depending upon (the possibly still
+         initializing) TraceImpl members.  Fixes #502944.
+
+2009-05-01 Jonathan Pryor  <jpryor@novell.com>
+
+       * DiagnosticsConfigurationHandler.cs: Don't refer to TraceImpl member
+         while reading the .config file, instead cache the values and refer
+         to the cached values during initialization.  This prevents recursive
+         initialization calls (Trace.OnInit() ... Trace.Listeners.Add() ...
+         Trace.OnInit() ...), and associated duplicate parsing of .config file
+         sections.  Fixes bnc#499442.
+       * TraceImpl.cs: Cope with DiagnosticsConfigurationHandler changes.
+       * TraceListenerCollection.cs: Add internal 
+         Add(TraceListener,TraceImplSettings) method for adding
+         TraceListeners during DiagnosticsConfigurationHandler initialization
+         (which can't access TraceImpl, as we may still be reading the
+         .config file to determine the TraceImpl values).
+
+2009-04-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ConsoleTraceListener.cs: add an internal constructor that takes a
+       string argument. Used when 'initializeData' is set.
+       * DiagnosticsConfigurationHandler.cs: try internal constructors when
+       the assembly is System.
+       Fixes bug #498853.
+
+2009-04-19  Miguel de Icaza  <miguel@novell.com>
+
+       * Process.cs: Do not crash if GetProcesses_internal returns null
+       This happens on operating systems where we have not implemented
+       EnumProcesses in the io-layer, see bug 496294.
+
+2009-02-24  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
+
+       * Process.cs: Throw IOEs instead of normal exceptions.
+       Fixes bug 477943.
+
+2009-01-22  Zoltan Varga  <vargaz@gmail.com>
+
+       * Stopwatch.cs: Reorder the calculations in Elapsed and ElapsedMilliseconds
+       to avoid overflow. Fixes #468570. Patch by Yoni Shalom <silver83@gmail.com>.
+
+2009-01-18  Zoltan Varga  <vargaz@gmail.com>
+
+       * Process.cs: Avoid closing the duplicated process handle in
+       ProcessWaitHandle, it is done automatically by the WaitHandle.Dispose ().
+       Fixes #464628.
+
+2008-12-09 Christian Hergert <christian.hergert@gmail.com>
+
+       * CounterCreationData.cs: CounterHelp defaults to String.Empty.
+
+2008-11-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * PerformanceCounter.cs: add 2 workarounds for known problems. I will
+       add the corresponding test cases later.
+
+2008-11-13  Bill Holmes  <billholmes54@gmail.com>
+
+       * Process.cs : Adding an implementation for WaitForInputIdle
+         to call the an internal call.  The internal call is only 
+         implemented properly on Windows.
+         
+       Code is contributed under MIT/X11 license.
+
+2008-11-06  Jonathan Chambers  <joncham@gmail.com>
+
+       * Process.cs : Use DuplicateHandle when redirecting
+       StdInput and StdOutput. Fixes bug #436291.
+
+Mon Oct 13 14:39:52 CEST 2008 Paolo Molaro <lupus@ximian.com>
+
+       * Process.cs: added icall and implementation of many memory-related
+       query methods (bug #434473).
+
+2008-09-20  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * PerformanceCounter.cs:
+       * Stopwatch.cs:
+       * TraceImpl.cs: Fixed line endings.
+
+2008-09-20  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DiagnosticsConfigurationHandler.cs (AddTraceAttributes): Avoid
+       wrapping configuration errors thrown during initialization of
+       TraceImpl. Fixed line endings.
+
+2008-09-18  Paolo Molaro <lupus@ximian.com>
+
+       * CounterSampleCalculator.cs: added more calculated types.
+       * PerformanceCounter.cs: NextValue() works as well as RawValue.
+
+2008-09-10  Bill Holmes  <billholmes54@gmail.com>
+
+       * Process.cs : Update the fields of ProcessAsyncReader to 
+         match MonoSocketAsyncResult metadata/socket-io.h
+
+       Contributed under MIT/X11 license.
+
+2008-09-09  Jonathan Pryor  <jpryor@novell.com>
+
+       * TraceImpl.cs:
+         - Remove the "lock-free" code, which (come to think of it) would be 
+           faulty in a multithreaded environment anyway because the "other"
+           threads won't wait (block) until initialization is complete...
+         - Add InitOnce() calls to all public properties, so that
+           `Debug.AutoFlush=true' will cause InitOnce() to be loaded, lest
+           a `Debug.AutoFlush=true; Debug.Listeners.Add(...)` sequence cause
+           .AutoFlush=true to be ignored as the InitOnce implied by .Add() 
+           will "overwrite" the .AutoFlush.
+         - Split up TraceListenerCollection creation from DefaultTraceListener 
+           addition, as TraceListenerCollection.Add() calls back into 
+           TraceImpl, so if these aren't separate we get an infinite loop
+           and never actually initialize anything.
+         - Fixes #424370.
+       * TraceListenerCollection.cs: Add a TraceListenerCollection(bool)
+         constructor, which provides a way to NOT add the
+         DefaultTraceListener (needed by TraceImpl; see above).
+
+2008-08-06  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Debug_2_1.cs: Add missing [Conditional] attributes.
+
+2008-08-02  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DelimitedTraceListener.cs: Changed accessibility of
+       GetSupportedAttributes to protected internal.
+       * DiagnosticsConfigurationHandler.cs: Use GetSupportedAttributes to
+       allow custom attributes on tracelisteners. Fixes bug #413203.
+       * TraceListener.cs: Changed accessibility of GetSupportedAttributes
+       to protected internal. Removed MonoTODO on GetSupportedAttributes and
+       Attributes. Fixed line endings.
+
+2008-08-01  Paolo Molaro <lupus@ximian.com>
+
+       * CounterCreationData.cs, PerformanceCounterCategory.cs: more
+       checks and default type fix.
+
+2008-07-28  Dick Porter  <dick@ximian.com>
+
+       * Process.cs: When passing handle references around, it needs to
+       be duplicated and freed so the OS doesn't close it.  Makes the
+       testcase in 410743 work again now the underlying bug has been
+       fixed.
+
+2008-07-27  Zoltan Varga  <vargaz@gmail.com>
+
+       * Process.cs (SetExitCallbackIfNeeded): Avoid a race condition by not
+       checking for HashExited.
+
+2008-06-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DiagnosticsConfigurationHandler.cs: quick build fix (hopefully).
+
+2008-06-26  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DiagnosticsConfigurationHandler.cs: On 2.0 profile, throw
+       ConfigurationErrorsException when any attribute other than 'Name'
+       is found when referencing a shared listener. Fixes bug #404054.
+       Added support for the traceOutputOptions attribute on 2.0 profile.
+       Fixes bug #403583. 
+
+2008-06-21  Robert Jordan  <robertj@gmx.net>
+
+       * Process.cs (Start_common): UserName may be null or empty.
+       Fixes bug  #350543.
+
+2008-06-19  Dick Porter  <dick@ximian.com>
+
+       * Process.cs: Match the buffer sizes of StreamReader and
+       MonoSyncFileStream for redirected stdout and stderr.  Fixes bug
+       401225.
+
+2008-05-02  Zoltan Varga  <vargaz@gmail.com>
+
+       * TraceImpl.cs: Update the IndentLevel property of this class when Indent ()
+       or Unindent () are called. Fixes #385666.
+
+2008-03-26  Dick Porter  <dick@ximian.com>
+
+       * FileVersionInfo.cs: Patch from Gert Driesen
+       (gert.driesen@pandora.be) for bug 355717.
+
+2008-03-19  Zoltan Varga  <vargaz@gmail.com>
+
+       * Stopwatch.cs: Fix visibility of GetTimestamp () method.
+
+Thu Feb 28 19:52:30 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * CounterCreationData.cs, PerformanceCounterCategory.cs,
+       PerformanceCounter.cs: bugfixes, icalls for categories,
+       more methods implemented.
+
+Wed Feb 27 20:00:04 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * CounterSample.cs, CounterSampleCalculator.cs, PerformanceCounter.cs,
+       PerformanceCounterCategory.cs, PerformanceCounterCategoryType.cs:
+       beginning of the performance counter implementation.
+
+Tue Feb 26 18:37:13 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * Stopwatch.cs: use an hires monotonic clock.
+
+2008-01-23  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FileVersionInfo.cs (GetVersionInfo): Resolve filename to absolute
+       path, and throw FileNotFoundException if it does not exist.
+
+2007-12-22  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Process.cs: In PriorityClass setter, first check whether value is
+       valid and remove LAMESPEC since the documentation has been corrected
+       for .NET 3.5. Code formatting.
+
+2007-12-19  Dick Porter  <dick@ximian.com>
+
+       * Process.cs: Check that the process has been started before
+       getting or setting the priority class.  Fixes bug 348415.
+
+2007-12-10  Miguel de Icaza  <miguel@novell.com>
+
+       * DefaultTraceListener.cs: By default set the AssertUiEnabled to
+       false, as this is what we had previously and some broken
+       applications (Tomboy) are too trigger happy with Debug.Assert. 
+
+       Also, we now load the Windows.Forms code on demand, instead of
+       preloading it on the static ctor to reduce memory usage.
+
+2007-12-08  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * LocalFileEventLog.cs: To allow entry to be fully written before
+       attempting to read it, added small sleep period in the Created event
+       of the FSW.
+
+2007-12-04  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Process.cs: Modified StartInfo to throw ArgumentNullException when
+       value is set to null, instead of ArgumentException. Remove check if
+       file name is rooted and exists when UseShellExecute is false, and let
+       runtime handle this. Fixes bug #3455655. When a process cannot be
+       started, do not access ProcessStartInfo.EnvironmentVariables since that
+       would not allow us to re-use the instance when changing
+       UseShellExecute. Added argument check in Start (ProcessStartInfo).
+       Code formatting.
+
+2007-11-16  Jb Evain  <jbevain@novell.com>
+
+       * Debug_2_1.cs: simply write debug messages to the
+       console.
+
+2007-11-15  Dick Porter  <dick@ximian.com>
+
+       * Process.cs: Pass the process handle to GetModules_internal();
+
+2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Process.cs : ... and it exposed some missing attributes.
+
+2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Process.cs : oops, SessionId was int.
+
+2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Process.cs : added missing SessionId (NIE).
+
+2007-10-30  Robert Jordan  <robertj@gmx.net>
+
+       * Process.cs: Wrap the redirected streams with a stream
+       that provides real async Begin/Read|Write operations.
+       Fixes bug #319829.
+
+2007-09-25  Miguel de Icaza  <miguel@novell.com>
+
+       * Process.cs: Return an empty collection to prevent crashes;
+       Fixes #319946
+
+Tue Sep 25 18:03:37 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+       * Process.cs: eliminate the console encoding logic which was
+       duplicated from System.Console and just use Console.Out.Encoding
+       (bug #328162).
+
+2007-09-21  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DiagnosticsConfigurationHandler.cs: Rename ValidateIntegralValue
+       to GetSwitchValue. On 2.0 profile, leave the type conversion to
+       Switch implementations. Minor corrections to exception messages to
+       match MS.
+       * Switch.cs: Avoid unnecessary inits. On 2.0 profile, catch and
+       rethrow exceptions in setter for Value. Do not hide exceptions thrown
+       in GetConfigFileSetting. Only set value from config file if switch is
+       actually defined.
+       * SourceSwitch.cs: Use SwitchSetting for getting/storing value instead
+       of new field. In OnValueChanged, parse enum value.
+       * TraceSwitch.cs: If SwitchSetting is changed to value > 4, then set
+       it to Verbose. In OnValueChanged, parse value case-insensitively, and
+       assign it to SwitchSetting (to allow other integral values).
+
+2007-09-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * EventLog.cs : added cosmetic 2.0 attributes on newly added members.
+
+2007-09-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * EventLog.cs, EventLogImpl.cs, LocalFileEventLog.cs, NullEventLog.cs,
+         Win32EventLog.cs : added missing members, will be left unsupported
+         in non-Win32 impl and left unimplemented in Win32.
+       * CounterCreationDataCollection.cs : in 2.0 OnValidate() is overriden
+         instad of OnInsert().
+       * Process.cs : removed StandardErrorEncoding and
+         StandardOutputEncoding. They do not exist anymore.
+
+2007-09-03  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ProcessStartInfo.cs : Implemented Verbs. It is done.
+
+2007-09-03  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Process.cs, ProcessStartInfo.cs : user info support (on windows).
+
+2007-08-23  Robert Jordan  <robertj@gmx.net>
+
+       * Process.cs: implement PriorityClass. Fixes #81756.
+
+Mon Aug 20 12:41:09 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+       * Process.cs: implemented icall for system/user times.
+
+2007-08-14  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * EventLog.cs: Do not allow all whitespace machine name. Do nothing
+       when setting the same value for EnableRaisingEvents, and only modify
+       value of field when enable/disable succeeded. Treats log name case
+       insensitively on all platforms, and perform reset when the log name
+       is changed. Validate new machine name in property, and treat it
+       case-insensitively. Perform reset when source is modified, and log
+       name was not explicitly set. When EventLog is closed, also disable
+       event watcher.
+       * LocalEventLog.cs: In Close, clean-up the FileSystemWatcher. Add
+       locking to Created eventhandler to avoid duplicate notifications.
+       * Win32EventLog.cs: Cache handle for reading from eventlog. In Close,
+       close the read handle. Implement support for watching win32 eventlog.
+       Fixes bug #82436.
+
+2007-08-08  Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
 
        * Process.cs: added StandardOutputEncoding and StandardErrorEncoding
        properties. Bug #82262 fixed.