1 2010-04-06 Jb Evain <jbevain@novell.com>
3 * Debug.cs: make class static.
5 2010-04-06 Jb Evain <jbevain@novell.com>
7 * Debug.cs (Assert, WriteLine): add net_4_0 overloads.
9 2010-03-11 Sebastien Pouliot <sebastien@ximian.com>
11 * Debug_2_1.cs: Change type to static to match SL4
13 2010-01-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
15 * Stopwatch.cs: add new Restart().
17 2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
19 * Debug_2_1.cs: Change type to sealed to match SL2/3
21 2009-10-12 Zoltan Varga <vargaz@gmail.com>
23 * Process.cs (Dispose): Close the async output/error readers. Fixes #545429.
25 2009-07-22 Jb Evain <jbevain@novell.com>
27 * ProcessStartInfo.cs: force no-verb on MONOTOUCH.
29 2009-07-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
31 * ProcessStartInfo.cs: HaveEnvVars is enabled by just using the
32 EnvironmentVariables property. Bug #520650 fixed.
34 2009-05-12 Jonathan Pryor <jpryor@novell.com>
36 * DiagnosticsConfigurationHandler.cs: Use the new
37 TraceSourceInfo(string, SourceLevels, TraceImplSettings) constructor.
38 * TraceSourceInfo.cs: Add a new constructor,
39 TraceSourceInfo(string, SourceLevels, TraceImplSettings), which adds
40 the DefaultTraceListener w/o depending upon (the possibly still
41 initializing) TraceImpl members. Fixes #502944.
43 2009-05-01 Jonathan Pryor <jpryor@novell.com>
45 * DiagnosticsConfigurationHandler.cs: Don't refer to TraceImpl member
46 while reading the .config file, instead cache the values and refer
47 to the cached values during initialization. This prevents recursive
48 initialization calls (Trace.OnInit() ... Trace.Listeners.Add() ...
49 Trace.OnInit() ...), and associated duplicate parsing of .config file
50 sections. Fixes bnc#499442.
51 * TraceImpl.cs: Cope with DiagnosticsConfigurationHandler changes.
52 * TraceListenerCollection.cs: Add internal
53 Add(TraceListener,TraceImplSettings) method for adding
54 TraceListeners during DiagnosticsConfigurationHandler initialization
55 (which can't access TraceImpl, as we may still be reading the
56 .config file to determine the TraceImpl values).
58 2009-04-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
60 * ConsoleTraceListener.cs: add an internal constructor that takes a
61 string argument. Used when 'initializeData' is set.
62 * DiagnosticsConfigurationHandler.cs: try internal constructors when
63 the assembly is System.
66 2009-04-19 Miguel de Icaza <miguel@novell.com>
68 * Process.cs: Do not crash if GetProcesses_internal returns null
69 This happens on operating systems where we have not implemented
70 EnumProcesses in the io-layer, see bug 496294.
72 2009-02-24 Andrés G. Aragoneses <aaragoneses@novell.com>
74 * Process.cs: Throw IOEs instead of normal exceptions.
77 2009-01-22 Zoltan Varga <vargaz@gmail.com>
79 * Stopwatch.cs: Reorder the calculations in Elapsed and ElapsedMilliseconds
80 to avoid overflow. Fixes #468570. Patch by Yoni Shalom <silver83@gmail.com>.
82 2009-01-18 Zoltan Varga <vargaz@gmail.com>
84 * Process.cs: Avoid closing the duplicated process handle in
85 ProcessWaitHandle, it is done automatically by the WaitHandle.Dispose ().
88 2008-12-09 Christian Hergert <christian.hergert@gmail.com>
90 * CounterCreationData.cs: CounterHelp defaults to String.Empty.
92 2008-11-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
94 * PerformanceCounter.cs: add 2 workarounds for known problems. I will
95 add the corresponding test cases later.
97 2008-11-13 Bill Holmes <billholmes54@gmail.com>
99 * Process.cs : Adding an implementation for WaitForInputIdle
100 to call the an internal call. The internal call is only
101 implemented properly on Windows.
103 Code is contributed under MIT/X11 license.
105 2008-11-06 Jonathan Chambers <joncham@gmail.com>
107 * Process.cs : Use DuplicateHandle when redirecting
108 StdInput and StdOutput. Fixes bug #436291.
110 Mon Oct 13 14:39:52 CEST 2008 Paolo Molaro <lupus@ximian.com>
112 * Process.cs: added icall and implementation of many memory-related
113 query methods (bug #434473).
115 2008-09-20 Gert Driesen <drieseng@users.sourceforge.net>
117 * PerformanceCounter.cs:
119 * TraceImpl.cs: Fixed line endings.
121 2008-09-20 Gert Driesen <drieseng@users.sourceforge.net>
123 * DiagnosticsConfigurationHandler.cs (AddTraceAttributes): Avoid
124 wrapping configuration errors thrown during initialization of
125 TraceImpl. Fixed line endings.
127 2008-09-18 Paolo Molaro <lupus@ximian.com>
129 * CounterSampleCalculator.cs: added more calculated types.
130 * PerformanceCounter.cs: NextValue() works as well as RawValue.
132 2008-09-10 Bill Holmes <billholmes54@gmail.com>
134 * Process.cs : Update the fields of ProcessAsyncReader to
135 match MonoSocketAsyncResult metadata/socket-io.h
137 Contributed under MIT/X11 license.
139 2008-09-09 Jonathan Pryor <jpryor@novell.com>
142 - Remove the "lock-free" code, which (come to think of it) would be
143 faulty in a multithreaded environment anyway because the "other"
144 threads won't wait (block) until initialization is complete...
145 - Add InitOnce() calls to all public properties, so that
146 `Debug.AutoFlush=true' will cause InitOnce() to be loaded, lest
147 a `Debug.AutoFlush=true; Debug.Listeners.Add(...)` sequence cause
148 .AutoFlush=true to be ignored as the InitOnce implied by .Add()
149 will "overwrite" the .AutoFlush.
150 - Split up TraceListenerCollection creation from DefaultTraceListener
151 addition, as TraceListenerCollection.Add() calls back into
152 TraceImpl, so if these aren't separate we get an infinite loop
153 and never actually initialize anything.
155 * TraceListenerCollection.cs: Add a TraceListenerCollection(bool)
156 constructor, which provides a way to NOT add the
157 DefaultTraceListener (needed by TraceImpl; see above).
159 2008-08-06 Sebastien Pouliot <sebastien@ximian.com>
161 * Debug_2_1.cs: Add missing [Conditional] attributes.
163 2008-08-02 Gert Driesen <drieseng@users.sourceforge.net>
165 * DelimitedTraceListener.cs: Changed accessibility of
166 GetSupportedAttributes to protected internal.
167 * DiagnosticsConfigurationHandler.cs: Use GetSupportedAttributes to
168 allow custom attributes on tracelisteners. Fixes bug #413203.
169 * TraceListener.cs: Changed accessibility of GetSupportedAttributes
170 to protected internal. Removed MonoTODO on GetSupportedAttributes and
171 Attributes. Fixed line endings.
173 2008-08-01 Paolo Molaro <lupus@ximian.com>
175 * CounterCreationData.cs, PerformanceCounterCategory.cs: more
176 checks and default type fix.
178 2008-07-28 Dick Porter <dick@ximian.com>
180 * Process.cs: When passing handle references around, it needs to
181 be duplicated and freed so the OS doesn't close it. Makes the
182 testcase in 410743 work again now the underlying bug has been
185 2008-07-27 Zoltan Varga <vargaz@gmail.com>
187 * Process.cs (SetExitCallbackIfNeeded): Avoid a race condition by not
188 checking for HashExited.
190 2008-06-27 Atsushi Enomoto <atsushi@ximian.com>
192 * DiagnosticsConfigurationHandler.cs: quick build fix (hopefully).
194 2008-06-26 Gert Driesen <drieseng@users.sourceforge.net>
196 * DiagnosticsConfigurationHandler.cs: On 2.0 profile, throw
197 ConfigurationErrorsException when any attribute other than 'Name'
198 is found when referencing a shared listener. Fixes bug #404054.
199 Added support for the traceOutputOptions attribute on 2.0 profile.
202 2008-06-21 Robert Jordan <robertj@gmx.net>
204 * Process.cs (Start_common): UserName may be null or empty.
207 2008-06-19 Dick Porter <dick@ximian.com>
209 * Process.cs: Match the buffer sizes of StreamReader and
210 MonoSyncFileStream for redirected stdout and stderr. Fixes bug
213 2008-05-02 Zoltan Varga <vargaz@gmail.com>
215 * TraceImpl.cs: Update the IndentLevel property of this class when Indent ()
216 or Unindent () are called. Fixes #385666.
218 2008-03-26 Dick Porter <dick@ximian.com>
220 * FileVersionInfo.cs: Patch from Gert Driesen
221 (gert.driesen@pandora.be) for bug 355717.
223 2008-03-19 Zoltan Varga <vargaz@gmail.com>
225 * Stopwatch.cs: Fix visibility of GetTimestamp () method.
227 Thu Feb 28 19:52:30 CET 2008 Paolo Molaro <lupus@ximian.com>
229 * CounterCreationData.cs, PerformanceCounterCategory.cs,
230 PerformanceCounter.cs: bugfixes, icalls for categories,
231 more methods implemented.
233 Wed Feb 27 20:00:04 CET 2008 Paolo Molaro <lupus@ximian.com>
235 * CounterSample.cs, CounterSampleCalculator.cs, PerformanceCounter.cs,
236 PerformanceCounterCategory.cs, PerformanceCounterCategoryType.cs:
237 beginning of the performance counter implementation.
239 Tue Feb 26 18:37:13 CET 2008 Paolo Molaro <lupus@ximian.com>
241 * Stopwatch.cs: use an hires monotonic clock.
243 2008-01-23 Gert Driesen <drieseng@users.sourceforge.net>
245 * FileVersionInfo.cs (GetVersionInfo): Resolve filename to absolute
246 path, and throw FileNotFoundException if it does not exist.
248 2007-12-22 Gert Driesen <drieseng@users.sourceforge.net>
250 * Process.cs: In PriorityClass setter, first check whether value is
251 valid and remove LAMESPEC since the documentation has been corrected
252 for .NET 3.5. Code formatting.
254 2007-12-19 Dick Porter <dick@ximian.com>
256 * Process.cs: Check that the process has been started before
257 getting or setting the priority class. Fixes bug 348415.
259 2007-12-10 Miguel de Icaza <miguel@novell.com>
261 * DefaultTraceListener.cs: By default set the AssertUiEnabled to
262 false, as this is what we had previously and some broken
263 applications (Tomboy) are too trigger happy with Debug.Assert.
265 Also, we now load the Windows.Forms code on demand, instead of
266 preloading it on the static ctor to reduce memory usage.
268 2007-12-08 Gert Driesen <drieseng@users.sourceforge.net>
270 * LocalFileEventLog.cs: To allow entry to be fully written before
271 attempting to read it, added small sleep period in the Created event
274 2007-12-04 Gert Driesen <drieseng@users.sourceforge.net>
276 * Process.cs: Modified StartInfo to throw ArgumentNullException when
277 value is set to null, instead of ArgumentException. Remove check if
278 file name is rooted and exists when UseShellExecute is false, and let
279 runtime handle this. Fixes bug #3455655. When a process cannot be
280 started, do not access ProcessStartInfo.EnvironmentVariables since that
281 would not allow us to re-use the instance when changing
282 UseShellExecute. Added argument check in Start (ProcessStartInfo).
285 2007-11-16 Jb Evain <jbevain@novell.com>
287 * Debug_2_1.cs: simply write debug messages to the
290 2007-11-15 Dick Porter <dick@ximian.com>
292 * Process.cs: Pass the process handle to GetModules_internal();
294 2007-11-13 Atsushi Enomoto <atsushi@ximian.com>
296 * Process.cs : ... and it exposed some missing attributes.
298 2007-11-13 Atsushi Enomoto <atsushi@ximian.com>
300 * Process.cs : oops, SessionId was int.
302 2007-11-13 Atsushi Enomoto <atsushi@ximian.com>
304 * Process.cs : added missing SessionId (NIE).
306 2007-10-30 Robert Jordan <robertj@gmx.net>
308 * Process.cs: Wrap the redirected streams with a stream
309 that provides real async Begin/Read|Write operations.
312 2007-09-25 Miguel de Icaza <miguel@novell.com>
314 * Process.cs: Return an empty collection to prevent crashes;
317 Tue Sep 25 18:03:37 CEST 2007 Paolo Molaro <lupus@ximian.com>
319 * Process.cs: eliminate the console encoding logic which was
320 duplicated from System.Console and just use Console.Out.Encoding
323 2007-09-21 Gert Driesen <drieseng@users.sourceforge.net>
325 * DiagnosticsConfigurationHandler.cs: Rename ValidateIntegralValue
326 to GetSwitchValue. On 2.0 profile, leave the type conversion to
327 Switch implementations. Minor corrections to exception messages to
329 * Switch.cs: Avoid unnecessary inits. On 2.0 profile, catch and
330 rethrow exceptions in setter for Value. Do not hide exceptions thrown
331 in GetConfigFileSetting. Only set value from config file if switch is
333 * SourceSwitch.cs: Use SwitchSetting for getting/storing value instead
334 of new field. In OnValueChanged, parse enum value.
335 * TraceSwitch.cs: If SwitchSetting is changed to value > 4, then set
336 it to Verbose. In OnValueChanged, parse value case-insensitively, and
337 assign it to SwitchSetting (to allow other integral values).
339 2007-09-05 Atsushi Enomoto <atsushi@ximian.com>
341 * EventLog.cs : added cosmetic 2.0 attributes on newly added members.
343 2007-09-05 Atsushi Enomoto <atsushi@ximian.com>
345 * EventLog.cs, EventLogImpl.cs, LocalFileEventLog.cs, NullEventLog.cs,
346 Win32EventLog.cs : added missing members, will be left unsupported
347 in non-Win32 impl and left unimplemented in Win32.
348 * CounterCreationDataCollection.cs : in 2.0 OnValidate() is overriden
349 instad of OnInsert().
350 * Process.cs : removed StandardErrorEncoding and
351 StandardOutputEncoding. They do not exist anymore.
353 2007-09-03 Atsushi Enomoto <atsushi@ximian.com>
355 * ProcessStartInfo.cs : Implemented Verbs. It is done.
357 2007-09-03 Atsushi Enomoto <atsushi@ximian.com>
359 * Process.cs, ProcessStartInfo.cs : user info support (on windows).
361 2007-08-23 Robert Jordan <robertj@gmx.net>
363 * Process.cs: implement PriorityClass. Fixes #81756.
365 Mon Aug 20 12:41:09 CEST 2007 Paolo Molaro <lupus@ximian.com>
367 * Process.cs: implemented icall for system/user times.
369 2007-08-14 Gert Driesen <drieseng@users.sourceforge.net>
371 * EventLog.cs: Do not allow all whitespace machine name. Do nothing
372 when setting the same value for EnableRaisingEvents, and only modify
373 value of field when enable/disable succeeded. Treats log name case
374 insensitively on all platforms, and perform reset when the log name
375 is changed. Validate new machine name in property, and treat it
376 case-insensitively. Perform reset when source is modified, and log
377 name was not explicitly set. When EventLog is closed, also disable
379 * LocalEventLog.cs: In Close, clean-up the FileSystemWatcher. Add
380 locking to Created eventhandler to avoid duplicate notifications.
381 * Win32EventLog.cs: Cache handle for reading from eventlog. In Close,
382 close the read handle. Implement support for watching win32 eventlog.
385 2007-08-08 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
387 * Process.cs: added StandardOutputEncoding and StandardErrorEncoding
388 properties. Bug #82262 fixed.
390 2007-08-06 Atsushi Enomoto <atsushi@ximian.com>
392 * Process.cs, ProcessStartInfo.cs : added StandardOutputEncoding
393 and StandardErrorEncoding.
395 2007-08-06 Atsushi Enomoto <atsushi@ximian.com>
397 * PerformanceCounterCategory.cs PerformanceCounter.cs :
398 added missing 2.0 stuff (unimplemented, where things are anyways
399 unimplemented in 1.x layer).
401 2007-08-06 Atsushi Enomoto <atsushi@ximian.com>
403 * PerformanceCounterInstanceLifetime.cs
404 PerformanceCounterCategoryType.cs : new.
405 * ICollectData.cs ProcessStartInfo.cs
406 InstanceDataCollectionCollection.cs PerformanceCounter.cs
407 InstanceDataCollection.cs Process.cs :
408 cosmetic attributes cleanup.
410 2007-08-03 Jb Evain <jbevain@novell.com>
412 * FileVersionInfo.cs: force the use of the params
413 AppendFormat method of StringBuilder as it is the only
414 one accessible in 2.1 and in the previous versions.
416 2007-08-03 Jb Evain <jbevain@novell.com>
418 * FileVersionInfo.cs: remove CAS checks for 2.1.
420 2007-08-03 Jb Evain <jbevain@novell.com>
422 * Process.cs: disable StartExistCallbackIfNeeded in 2.1.
424 2007-08-03 Jb Evain <jbevain@novell.com>
426 * ProcessThreadCollection.cs
427 ProcessModuleCollection.cs: use our own collection base
428 for the 2.1 profile, as ReadOnlyCollectionBase does not exist
429 in 2.1, and they are internalized by the linker.
431 2007-08-02 Atsushi Enomoto <atsushi@ximian.com>
433 * EventLogTraceListener.cs : fixed wrong 2.0 dependency in 1.x.
435 2007-08-02 Atsushi Enomoto <atsushi@ximian.com>
437 * EventLogTraceListener.cs : implemented.
439 2007-08-02 Atsushi Enomoto <atsushi@ximian.com>
443 LocalFileEventLog.cs : Implemented EntryWritten event support.
444 * Win32EventLog.cs, NullEventLog.cs : they need stub overrides.
445 * EventLogEntry.cs : [MonitoringDescription].
446 * DiagnosticsConfigurationHandler.cs : [Obsolete]
448 2007-08-01 Atsushi Enomoto <atsushi@ximian.com>
450 * DefaultTraceListener.cs : implemented AssertUiEnabled using MWF.
452 2007-08-01 Atsushi Enomoto <atsushi@ximian.com>
454 * CounterSample.cs : implemented missing 2.0 equality stuff.
455 * CounterSampleCalculator.cs : static in 2.0.
457 2007-07-24 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
459 * Process.cs: use the default encoding or the windows input/output
460 encodings for the process input/output/error streams. Bug #80838 fixed.
462 2007-07-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
464 * Process.cs: don't send empty lines that are not in the input. Fixes
467 2007-07-11 Ankit Jain <jankit@novell.com>
469 * ProcessStartInfo.cs (WorkingDirectory.set): Don't set
470 working_directory to null.
472 2007-05-18 Atsushi Enomoto <atsushi@ximian.com>
474 * TraceSourceInfo.cs : new class for storing configuration data.
475 * TraceSource.cs : TraceEventCache arguments should be null (they are
476 nullable). Use TraceSourceInfo above.
477 * DiagnosticsConfigurationHandler.cs : removed hack to store listeners
478 in named sources, not traceimpl. Create TraceSource objects from
481 2007-05-18 Marek Safar <marek.safar@gmail.com>
483 * DiagnosticsConfigurationHandler.cs: Fixed 1.1 build.
485 2007-05-18 Atsushi Enomoto <atsushi@ximian.com>
487 * XmlWriterTraceListener.cs : open file in shared r/w mode.
488 * DiagnosticsConfigurationHandler.cs : process <sharedListeners>
489 elements first, so that named listeners work fine.
490 * EventLogTraceListener.cs : added 2.0 stubs.
491 * CorrelationManager.cs : removed todo.
493 2007-05-18 Atsushi Enomoto <atsushi@ximian.com>
495 * TraceListener.cs : in TraceTransfer(), use TraceEvent() (some
496 derived classes depend on this change).
497 * DelimitedListTraceListener.cs : implemented.
499 2007-05-18 Atsushi Enomoto <atsushi@ximian.com>
501 * EventLogPermissionAccess.cs ProcessPriorityClass.cs
502 ProcessWindowStyle.cs ThreadWaitReason.cs TraceImpl.cs
503 Trace.cs ThreadPriorityLevel.cs EventLogEntryType.cs
504 PerformanceCounterPermissionAccess.cs PerformanceCounterType.cs
505 TraceListener.cs ThreadState.cs : cosmetic API fixes.
506 * SwitchAttribute.cs : implemented GetAll().
508 2007-05-17 Atsushi Enomoto <atsushi@ximian.com>
510 * TraceOptions.cs : new enum.
511 * TraceListener.cs : support TraceOutputOptions. Fixed missing
512 NET_2_0 condition in TARGET_JVM section.
513 * TraceSwitch.cs, BooleanSwitch.cs :
514 Added missing constructors and OnValueChanged().
515 * Trace.cs, TraceImpl.cs :
516 Added CorrelationManager and UseGlobalLock.
517 * TraceEventCache.cs : initialize property values at construction.
518 * Switch.cs : added XmlIgnore on Attributes.
520 2007-05-15 Adar Wesley <adarw@mainsoft.com>
522 * Trace.cs: added missing method Refresh.
524 2007-05-14 Atsushi Enomoto <atsushi@ximian.com>
529 SwitchLevelAttribute.cs
530 DelimitedListTraceListener.cs
531 SwitchAttribute.cs : new files in 2.0.
532 * DiagnosticsConfigurationHandler.cs : partial support for named
534 * XmlWriterTraceListener.cs : cosmetic corcompare fixes. Added
536 * TraceListener.cs : added missing 2.0 stuff. Implemented Filter.
537 * DefaultTraceListener.cs : trivial ComVisible fix.
539 2007-05-10 Atsushi Enomoto <atsushi@ximian.com>
541 * TextWriterTraceListener.cs : open log file in readwrite share mode.
542 This fixes bug #81296.
544 2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
548 for TARGET_JVM used Thread Local Storage istead
549 Thread-Relative Static Fields
551 2007-05-02 Jonathan Chambers <joncham@gmail.com>
553 * Stopwatch.cs : Implement high performance stopwatch on windows.
555 2007-04-19 Atsushi Enomoto <atsushi@ximian.com>
557 * XmlWriterTraceListener.cs : new file, implementated.
558 * TraceListener.cs : implemented 2.0 members.
560 2007-03-04 Vladimir Krasnov <vlaimdirk@mainsoft.com>
562 * DiagnosticsConfigurationHandler.cs: removed configuration init in
563 TARGET_JVM since not supported
565 2007-02-02 Gert Driesen <drieseng@users.sourceforge.net>
567 * EventLogImpl.cs: When no log name is specified, return zero-length
568 string for LogDisplayName.
570 2007-01-28 Ilya Kharmatsky <ilyak -at- mainsoft.com>
572 * TraceEventCache.jvm.cs: added as a stub class.
574 Tue Jan 23 17:19:13 CET 2007 Paolo Molaro <lupus@ximian.com>
576 * ProcessStartInfo.cs: put the fields in the order expected
579 2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
581 * Switch.cs : added missing .ctor(), Attributes, Value,
582 GetSupportedAttributes() and OnValueChanged().
583 * DiagnosticsConfigurationHandler.cs : added some hacky handler for
584 new "sources" element. Don't wrap another ConfigurationException.
585 * TraceListener.cs : added missing trace methods.
586 * TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
587 TraceEventCache.cs, TraceEventType.cs, SourceSwitch.cs:
588 added missing 2.0 stuff, mostly just stubs.
590 2007-01-12 Miguel de Icaza <miguel@novell.com>
592 * Trace.cs: Add a number of 2.0 overloads.
594 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
596 * Process.cs: Allow GetProcesses and GetProcessById overloads with
597 machine name to work for local machine.
599 2006-12-29 Robert Jordan <robertj@gmx.net>
601 * TraceImpl.cs (Assert): Include line numbers in the stack trace
602 emitted by Assert (). Fixes bug #80400.
604 Thu Dec 14 20:24:09 CET 2006 Paolo Molaro <lupus@ximian.com>
606 * Process.cs: if a process object is restarted, close the
607 previous process handle (bug #80143).
609 2006-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
611 * Process.cs: the Process returned by the static Start method never had
612 the right ProcessStartInfo. Fixes bug #80019.
614 2006-10-13 Atsushi Enomoto <atsushi@ximian.com>
616 * DiagnosticsConfigurationHandler.cs : be more skeptic on
617 broken configuration file.
619 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
621 * DefaultTraceListener.cs: TARGET_JVM
623 2006-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
625 * Process.cs: fix operation number to be 8. The other one was working
626 because the default is to wait for input on the file descriptor.
628 2006-09-05 Gert Driesen <drieseng@users.sourceforge.net>
630 * Win32EventLog.cs: Removed workarounds for bug #79152 and bug #79117
631 now that these have been fixed. Release unmanaged memory that was
632 allocated for replacement strings.
634 2006-08-27 Gert Driesen <drieseng@users.sourceforge.net>
636 * NullEventLog.cs: Added dummy GetLogNames implementation.
637 * EventLogImpl.cs: Moved GetEventLogs implementation to base class.
638 Added abstract GetLogNames method. Added ValidateCustomerLogName
639 method which should be called by eventlog providers when creating a
640 new log to ensure the significant part of the log name is unique, does
641 not match any of the special log names and does not match an exist event
643 * Win32EventLog.cs: Validate customer log name when creating new log.
644 Moved GetEventLogs implementation to base class. Added GetLogNames
646 * LocalFileEventLog.cs: Merged CreateLogStore into CreateEventSource.
647 Validate customer log name when creating new log. Moved GetEventLogs
648 implementation to base class. Added GetLogNames method.
650 2006-08-26 Gert Driesen <drieseng@users.sourceforge.net>
652 * Win32EventLog.cs: Fixed error messages. Use RegisterEventSource
653 pinvoke when opening eventlog for writing entries.
655 2006-08-26 Gert Driesen <drieseng@users.sourceforge.net>
657 * Win32EventLog.cs: Added and documented workarounds for bug #79117
660 2006-08-25 Gert Driesen <drieseng@users.sourceforge.net>
662 * LocalFileEventLog.cs: When event log store does not exist, then we
663 do not need to perform a case-insensitive lookup of the log name.
665 2006-08-20 Gert Driesen <drieseng@users.sourceforge.net>
667 * EventLog.cs: Removed namespace import.
668 * EventInstance.cs: Added range checks and check whether specified
669 entry type is defined.
671 2006-08-20 Gert Driesen <drieseng@users.sourceforge.net>
673 * EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
674 Obsolete attribute to correct property.
675 * EventSourceCreationData.cs: Updated copyright. For internal ctor,
676 set log name to "Application" if value is null or zero-length string.
677 * EventLogImpl.cs: EventImpl now acts as base class for event log
679 * NullEventLog.cs: Modified to implement new abstract methods of base
680 class. Removed factory class.
681 * EventLog.cs: EventLog implementation that delegates just about
682 everything to individual eventlog providers. To specify the event log
683 implementation to use, the MONO_EVENTLOG_TYPE environment variable can
684 be used. Possible values are:
685 - win32 : read/write entries using the native win32 eventlog
686 - local[:path] : read/write entries as files to a local directory
687 - null : silently ignore all entries
688 The default is "null" on unix (and versions of Windows before NT,
689 meaning Windows 98, ...), and "win32" on Windows NT (and higher).
690 When "the local" implementation is used, the directory in which to
691 store the event logs, event sources and entries can be specified as
692 part of MONO_EVENTLOG_TYPE environment variable using the syntax
693 "local:<path>" (eg. local:/home/myuser/mono/eventlog).
694 * LocalFileEventLog.cs: Event log implementation which uses a local
695 file store. The directory to use for persistence can be specified
696 as part of the MONO_EVENTLOG_TYPE environment variable (see above).
697 If that directory is not explicitly set, then the following directory
698 will be used for storing eventlog entries:
699 - windows : %APPDATA%\mono\eventlog
700 - unix : /var/lib/mono/eventlog
701 On unix, the directory permission for individual eventlog log
702 directories will be set to 777 (with +t bit) allowing everyone to
703 read and write eventlog entries while only allowing entries to be
704 deleted by the user(s) that created them.
705 Format of log files was modified to allow it contain all necessary
706 information for an event log entry.
707 * Win32EventLog.cs: Event log implementation for Windows NT and
708 higher which uses the Win32 native event log for reading/writing
709 eventlog entries, and which uses the registry to store event log and
710 event source registration information.
711 * EventLogEntryCollection.cs: Delegate implementation to event log
712 implementation. Use lazy init for enumerating entries. Cache current
715 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
717 * LocalFileEventLog.cs : change lengthy environment variable name.
718 MONO_LOCAL_EVENTLOG_PATH -> MONO_EVENTLOG_PATH.
720 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
722 * EventLogImpl.cs, EventLogEntryCollection.cs, EventLog.cs :
723 some rework to support actual event log implementations.
724 * NullEventLog.cs, LocalFileEventLog.cs :
725 new files. The former (default) implementation does nothing for
726 any event log features. The latter implements local file based
729 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
731 * UnixEventLog.cs, EventLogEntry.cs, EventSourceCreationData.cs,
732 EventLogImpl.cs, Win32EventLog.cs, EventLogEntryCollection.cs,
734 Reverted previous two changes that does not work at all.
736 2006-08-11 Gert Driesen <drieseng@users.sourceforge.net>
738 * EventLog.cs: For now, Use null implementation.
740 2006-08-11 Gert Driesen <drieseng@users.sourceforge.net>
742 * EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
743 Obsolete attribute to correct property.
744 * EventSourceCreationData.cs: Updated copyright. For internal ctor,
745 set log name to "Application" if value is null or zero-length string.
746 * EventLogImpl.cs: EventImpl now acts as base class for event log
747 implemenations. Added NullEventLog implementation, which is not used
749 * EventLog.cs: EventLog implementation that uses registry for
750 keeping track of logs and sources to match .NET (and Windows). When
751 running on Windows NT (and higher), event entries are written to
752 the native win32 event log. Reading event entries is not yet working
753 for Windows. On linux, we use a local file store (based on patch by
755 * UnixEventLog.cs: Event log implementation for linux which uses a
757 * Win32EventLog.cs: Event log implementation for Windows NT and
758 higher which uses the Win32 native event log.
759 * EventLogEntryCollection.cs: Delegate implementation to event log
760 implemenation. Use lazy init for enumerating entries.
762 2006-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
764 * Process.cs: reset the 'start' time if we wait for stdout reading to
767 2006-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
769 * Process.cs: add support for 2.0 asynchronous reads on stdout and
772 2006-08-09 Gert Driesen <drieseng@users.sourceforge.net>
774 * EventSourceCreationData.cs: Marked ctor internal, and removed ctor.
775 Throw ArgumentOutOfRangeException if negative value for CategoryCount
778 2006-08-09 Gert Driesen <drieseng@users.sourceforge.net>
780 * EventInstance.cs: Added 2.0 class.
781 * EventSourceCreationData.cs: Added 2.0 class.
782 * OverflowAction.cs: Added 2.0 enum.
784 2006-07-31 Sebastien Pouliot <sebastien@ximian.com>
786 * EventLogEntry.cs: Add a linkdemand for unrestricted on class.
787 * EventLogTraceListener.cs: Add a linkdemand for unrestricted on class
788 * FileVersionInfo.cs: Add a linkdemand for unrestricted on class. Add
789 an imperative demand for FileIOPermission.Read on GetVersionInfo
790 method. Change ToString method to use a StringBuilder.
791 * PerformanceCounterCategory.cs: Add a linkdemand for unrestricted on
793 * PerformanceCounterManager.cs: Add a linkdemand for unrestricted on
794 class. Add [Obsolete] for NET_2_0 profile.
795 * Process.cs: Add a linkdemand and an inheritancedemand for
796 unrestricted on class.
797 * ProcessStartInfo.cs: Add a linkdemand for unrestricted on class.
799 2006-07-16 Andrew Skiba <andrews@mainsoft.com>
801 * Process.cs: throw FileNotFoundException earlier; give more
804 2006-05-16 Dick Porter <dick@ximian.com>
806 * Process.cs: Dispose the handle from a destructor too
808 2006-04-04 Atsushi Enomoto <atsushi@ximian.com>
811 Zoltan was quicker to add it, here I put my implementation ;-)
813 Added some missing long members (not implemented anyways).
814 * DataReceivedEventHandler.cs DataReceivedEventArgs.cs :
817 2006-04-01 Zoltan Varga <vargaz@gmail.com>
819 * Stopwatch.cs: New file.
821 2006-03-31 Zoltan Varga <vargaz@gmail.com>
823 * Debug.cs: Add net 2.0 Print methods.
825 2006-03-03 Dick Porter <dick@ximian.com>
827 * Process.cs: Close redirected pipes on errors. Fixes bug 77514.
829 2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
831 * ConsoleTraceListener.cs: New 2.0 class
833 2005-11-17 Dick Porter <dick@ximian.com>
835 * Process.cs: Split Start_common into Start_shell and
836 Start_noshell, which call ShellExecuteEx and CreateProcess
837 respectively. Fixes bug 76670.
839 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
841 * Process.cs: deal with the fact that someone can enable raising events
842 and/or registed a Exited delegate before and *after* Start is called for
843 the process. Only queue the exit callback in the threadpool when it's
844 possible and requested. Fixes bug #76129.
846 2005-08-09 Gert Driesen <drieseng@users.sourceforge.net>
848 * EventLog.cs: Fixed Designer attribute to match MS.NET.
849 * ICollectData.cs: Added marshalling attribute to match MS.NET.
850 * PerformanceCounter.cs: Fixed Designer attribute to match MS.NET.
851 * Process.cs: Fixed Designer attribute to match MS.NET, modified
852 * ProcessModule.cs: Fixed Designer attribute to match MS.NET.
853 * ProcessThread.cs: Fixed Designer attribute to match MS.NET.
854 DesignerSerializationVisibility on StartInfo to match MS.NET, changed
855 Category attribute on Exited event to match MS.NET.
857 2005-06-09 Gert Driesen <drieseng@users.sourceforge.net>
859 * TraceImpl.cs: Adjust internal indentlevel and indentsize before
860 passing on to listeners. Fixes some test failures.
862 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
864 * DefaultTraceListener.cs: s/MONO_TRACE/MONO_TRACE_LISTENER/. The
865 runtime uses MONO_TRACE too...
867 2005-05-31 Sebastien Pouliot <sebastien@ximian.com>
869 * PerformanceCounterPermissionEntry.cs: Added more 2.0 validations for
870 machine names and PerformanceCounterPermissionAccess.
872 2005-02-22 Jonathan Pryor <jonpryor@vt.edu>
874 * TraceImpl.cs: More Thread-safety fixes. I have to lock on
875 Listeners.SyncRoot as we're traversing the collection and can't let the
876 collection change from underneath us while we're iterating over it
877 (alternately, we could clone the collection and iterate over the clone
878 without having locking issues -- assuming we had a lock-free clone --
879 but this would kill the GC). Fixes 69964. Only define lock_ if we're
880 using the lock-free initialization routine; it's not used otherwise.
882 2005-01-18 Jonathan Pryor <jonpryor@vt.edu>
884 * DiagnosticsConfigurationHandler.cs (DiagnosticsConfiguration):
885 Use a lock-free algorithm for creating the settings information.
886 * TraceImpl.cs (InitOnce): Use a lock-free algorithm for creating the
887 listeners collection and initializing the world.
889 2005-01-18 Jonathan Pryor <jonpryor@vt.edu>
891 * DiagnosticsConfigurationHandler.cs (DiagnosticsConfiguration): Don't
892 read the .config file from the static ctor (again), as if it fails we'll
893 get a TypeLoadException -- bad! Instead, lazy-read the .config file.
894 * DiagnosticsConfigurationHandler.cs (DiagnosticsConfigurationHandler):
895 Require that the /switch/add/@value attribute contains only numeric values.
896 * TraceImpl.cs: Don't initialize everything in the static ctor, as if it
897 fails (due to an invalid .confg file) we get a TypeLoadException, while
898 .NET generates a ConfigurationException. Instead, initialize everything
899 the first time the Listeners property is accessed, which allows the static
900 ctor to run without chance of failure, avoiding the TypeLoadException.
901 * TraceListenerCollection.cs: This should be thread-safe, as it's accessible
902 from a static member of TraceImpl (available through the public Debug and
904 * Switch.cs: Leave the original switch value alone. If it isn't valid
905 (i.e. numeric), the DiagnosticsConfigurationHandler will catch it.
907 2005-01-17 Jonathan Pryor <jonpryor@vt.edu>
909 * DiagnosticsConfigurationHandler.cs: The /switch/add/@value attribute
910 isn't optional under .NET 1.1, so make sure it exists.
912 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
914 * DiagnosticsConfigurationHandler.cs: Make DiagnosticsConfiguration.Settings
915 thread-safe (double-checked locking isn't thread safe on .NET without
916 using a volatile variable, and setting the variable in the static
917 constructor is easier anyway).
918 * Switch.cs (GetConfigFileSetting): If the setting is non-numeric, set the
919 attribute value to the string "0". This is apparently what .NET 1.1 does,
920 and allows the SwitchTest NUnit test to work w/o failures.
922 2004-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
924 * Process.cs: always pass the same arguments to the runtime.
926 2004-09-11 Sebastien Pouliot <sebastien@ximian.com>
928 * EventLogPermission.cs: Completed implementation.
929 * EventLogPermissionAccess.cs: Fixed enum values.
930 * EventLogPermissionEntry.cs: Added validation for machine names.
931 * EventLogPermissionEntryCollection.cs: Added synchronization
932 of entries with the base permission class.
933 * PerformanceCounterPermission.cs: Completed implementation.
934 * PerformanceCounterPermissionAccess.cs: Fixed enum values.
935 * PerformanceCounterPermissionEntry.cs: Added validations for machine
937 * PerformanceCounterPermissionEntryCollection.cs: Added synchronization
938 of entries with the base permission class.
940 2004-09-10 Sebastien Pouliot <sebastien@ximian.com>
942 * EventLogPermission.cs: Fixed initialization (TagNames and
943 PermissionAccessType).
944 * EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added
945 [Obsolete] to some existing elements.
946 * EventLogPermissionAttribute.cs: Added missing validation to property
947 MachineName. Fixed changes for NET_2_0.
948 * PerformanceCounterPermission.cs: Fixed initialization (TagNames and
949 PermissionAccessType).
950 * PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
951 and added [Obsolete] to some existing elements.
952 * PerformanceCounterPermissionAttribute.cs: Added missing validations
953 to properties (Path, MachineName). Fixed changes for NET_2_0.
955 2004-09-07 Dick Porter <dick@ximian.com>
957 * Process.cs: Throw documented exceptions when getting stdin,
958 stdout or stderr and they haven't been redirected. Check that
959 CreatePipe didn't fail, throw exceptions if it did. Close
960 redirected streams when the process is disposed, rather than rely
961 on the GC disposing them later. Makes timeline much happier,
962 because it could run out of file descriptors between GC
965 2004-09-06 Dick Porter <dick@ximian.com>
967 * Process.cs: Make Dispose() actually dispose things.
969 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
971 * Process.cs : quick fix for UseShellExecute=false on windows. See
974 2004-06-17 Lluis Sanchez Gual <lluis@ximian.com>
976 * Process.cs: Added missing check in HasExited property.
978 2004-05-20 Gert Driesen (drieseng@users.sourceforge.net)
980 * EventLogPermissionAttribute.cs:
981 * PerformanceCounterPermissionAttribute.cs: adjust AllowMultiple
982 and Inherited to match .NET
984 2004-05-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
986 * Process.cs: separate the command and the arguments when calling
989 2004-05-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
991 * Process.cs: redirecting I/O is not permitted if UseShellExecute is
992 true. Also throw if FileName is null.
994 2004-04-06 Lluis Sanchez Gual <lluis@ximian.com>
996 * DiagnosticsConfigurationHandler.cs: If initializeData is provided,
997 use the constructor that only takes one string as parameter to
998 construct the listener. The name is set using the Name property, not the
1001 * TextWriterTraceListener.cs: In Write*, do nothing if no writer was
1004 2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1006 * Process.cs: use the ISynchronizeInvoke object to invoke the event.
1007 Implemented Close, CloseMainWindow and Kill.
1009 2004-03-23 Ben Maurer <bmaurer@users.sourceforge.net>
1011 * Switch.cs: Don't throw when there is no switches section.
1013 2004-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1015 * Process.cs: support EnableRaisingEvents + Exited event.
1017 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1019 * Process.cs: patch by Gert Driesen that fixes WaitForExit when the
1020 timeout is int.MaxValue.
1022 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1024 * Process.cs: added environment variables setting support and also
1025 send useShellExecute to the runtime.
1027 * ProcessStartInfo.cs: support EnvironmentVariables. MS uses
1028 StringDictionary, which turns keys into lowercase. We don't do that.
1030 2004-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1032 * Process.cs: ExitCode and ExitTime check that the process is finished.
1034 2003-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1036 * Process.cs: if there's an error when starting the process, the 'pid'
1037 field contains the GetLastError code. Use that for the Win32Exception.
1039 2003-12-06 Martin Baulig <martin@ximian.com>
1041 * DefaultTraceListener: Don't use `where' in variable names.
1043 2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1045 * ICollectData.cs: Fixed signature
1047 2003-11-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1049 * ICollectData.cs: Added missing attribute
1051 2003-07-27 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1053 * SRDescriptionAttribute.cs: Moved to System directory
1055 2003-07-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1057 * EventLog.cs: Implementation handling
1058 * EventLogImpl.cs: Added, contains an platform independent empty implementation
1061 2003-07-18 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1063 * AlphabeticalEnumConverter.cs: Added
1064 * EventLogEntry.cs: Implemented
1065 * EventLogPermissionEntryCollection.cs: Fixed signature and implementation of indexer
1066 * EventLogTraceListener.cs: Fixed signature
1067 * PerformanceCounter.cs: Added missing attribute
1068 * PerformanceCounterType.cs: Added missing attribute
1069 * SRDescriptionAttribute.cs: Added and implemented
1071 2003-07-17 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1073 * CounterCreationData.cs:
1076 * PerformanceCounter.cs:
1079 * ProcessStartInfo.cs:
1080 * ProcessThread.cs: Reworked attributes based on the new Consts scheme
1082 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1084 * PerformanceCounterCategory.cs: Fixed signatures
1086 2003-07-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1088 * PerformanceCounter.cs: Implemented or implementation added
1090 2003-07-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1092 * DiagnosticsConfigurationHandler.cs: Removed a never used variable
1093 * EventLog.cs: Small update to prevent a warning
1094 * EventLogPermission.cs: Implemented or implementation added
1095 * EventLogPermissionAttribute.cs: Implemented or implementation added
1096 * EventLogPermissionEntry.cs: Implemented or implementation added
1097 * EventLogPermissionEntryCollection.cs: Implemented or implementation added
1098 * EventLogTraceListener.cs: Implemented or implementation added
1099 * PerformanceCounterManager.cs: Implemented or implementation added
1100 * PerformanceCounterInstaller.cs: Made internal
1101 * PerformanceCounterCategory.cs: Implemented few members
1102 * PerformanceCounterPermission.cs: Implemented or implementation added
1103 * PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
1104 * PerformanceCounterPermissionEntry.cs: Implemented or implementation added
1105 * PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added
1107 2003-07-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1109 * EventLog.cs: Removed unneccesary attribute according to corecompare
1110 * EventLogEntry.cs: Removed unneccesary attribute according to corecompare
1111 * Process.cs: Removed unneccesary attributes according to corecompare, added attribute
1112 * ProcessModule.cs: Removed unneccesary attribute according to corecompare
1113 * ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
1114 * ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature
1116 2003-07-05 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1118 * InstanceDataCollectionCollection.cs: Corrected wrong signature
1119 * EventLog.cs: Missing attributes added, redirected some class members
1120 * EventLogEntry.cs: Missing attributes added
1121 * EventLogInstaller.cs: Made internal
1123 2003-07-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1125 * CounterCreationData.cs: Added missing attributes
1126 * CounterSample.cs: Implemented missing rest, fixed signature
1127 * CounterSampleCalculator.cs: Added private constructor, redirected function
1128 * Process.cs: Added attributes, added event mechanism
1129 * ProcessModule.cs: Added missing attributes
1130 * ProcessModuleCollection.cs: Redone using the already inherited-from ArrayList. Simplifies this a LOT
1131 * ProcessStartInfo.cs: Added missing attributes, moved internal fields to the begining of the file, restyling
1132 * ProcessThread.cs: Added missing attributes, added pseudo constructor
1133 * ProcessThreadCollection.cs: Implemented
1134 * PerformanceCounterPermission.cs: Fixed typo in class name
1135 * PerformanceCounterPermissionAccess.cs: Added attributes, fixed wrong member
1137 2003-03-19 Dick Porter <dick@ximian.com>
1139 * Process.cs: Implement HasExited, fixes bug 39267
1141 2003-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1143 * Process.cs: throw an exception when the executable cannot be found.
1145 2002-12-20 Jonathan Pryor <jonpryor@vt.edu>
1146 * DiagnosticsConfigurationHandler.cs:
1147 - Don't assume that optional attributes are always present
1148 - <assert/> can't have any child nodes
1149 - Change in semantics: if the attribute isn't present,
1150 GetAttribute() returns null, not "". This allows us to
1151 differentiate between an attribute not being present and an
1152 attribute with an empty value.
1153 - Translate exceptions if a TraceListener type is invalid
1155 2002-12-19 Jonathan Pryor <jonpryor@vt.edu>
1156 * TraceListenerCollection.cs: IndentLevel and IndentSize shouldn't be
1157 hardcoded; they should be set to whatever TraceImpl is using (which
1158 in turn may have been set by the .config file, so we should get the
1159 user-specified values in added listeners).
1160 * TraceListener.cs: Make sure that indents are initially written. This
1161 allows code that uses Trace.Indent() before a Trace.WriteLine() to be
1163 * TraceImpl.cs: provide a static constructor to explicitly specify the
1164 ordering of initialization, in particular the ordering of
1165 TraceImpl.Listeners and the reading of the .config file (by
1166 accessing DiagnosticsConfiguration.Settings). This (hopefully)
1167 ensures that the Listeners collection is initialized before the
1168 .config file is read in, as the DiagnosticsConfigurationHandler will
1169 directly modify the listeners collection.
1170 The DiagnosticsConfigurationHandler assumes this so that it can
1171 <add/> and <remove/> trace listeners and set the logfile for the
1172 DefaultTraceListener.
1175 2002-12-18 Jonathan Pryor <jonpryor@vt.edu>
1176 * BooleanSwitch.cs: Complete re-write. It works now.
1177 * DefaultTraceListener.cs:
1178 - Use `const' strings, so I don't worry about copy/paste errors
1179 - Give `AssertUiEnabled' an actual backing member
1180 * DiagnosticsConfigurationHandler.cs: To avoid race conditions, let the
1181 configuration handler set .config-specified properties on
1182 DefaultTraceListener (AssertUiEnabled, LogFileName) and TraceImpl
1183 (AutoFlush, IndentSize).
1184 * Switch.cs: Near complete re-write. Actually works, and is (should be)
1185 comformant with .NET behavior. Changed member names because they
1186 were confusing me. (Yes, that doesn't say much about my memory.)
1187 * TextWriterTraceListener.cs: Append text to already existing files,
1188 don't overwrite them.
1190 - Added private destructor, to ensure no instances are created.
1191 - Move members declarations to be closer to each other.
1192 * TraceSwitch.cs: Complete re-write. It works now.
1194 2002-12-17 Jonathan Pryor <jonpryor@vt.edu>
1195 * DiagnosticsConfigurationHandler.cs: Implement so that .config files
1196 support <system.diagnostics> sections.
1198 2002-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1200 * DefaultTraceListener.cs: now OutputDebugStringW is called from an
1201 internal call (update your runtime!). No more warnings in linux.
1203 2002-10-31 Dick Porter <dick@ximian.com>
1205 * Process.cs: MonoIO methods now have an error parameter
1207 2002-10-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1209 * DefaultTraceListener.cs: changed OutputDebugString to
1210 OutputDebugStringW (no more warnings under windows). Also a few style
1213 2002-10-23 Dick Porter <dick@ximian.com>
1215 * Process.cs: Redirected standard input needs to have AutoFlush set
1217 2002-09-27 Dick Porter <dick@ximian.com>
1219 * Process.cs: Implemented {get_,set_}{Min,Max}WorkingSet,
1220 ProcessName, GetProcessById, GetProcesses, GetProcessesByName.
1221 Pass the working directory to Start. Pass the program and args in
1222 one string to be used with the second arg of CreateProcess, so it
1223 will search the path.
1225 2002-09-19 Nick Drochak <ndrochak@gol.com>
1227 * TraceImpl.cs: Remove debug prints
1229 2002-09-19 Nick Drochak <ndrochak@gol.com>
1231 * TraceListenerCollection.cs: Set Indet level and size to default
1232 values. The values from TraceImpl might have been changed.
1234 2002-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1237 * TextWriterTraceListener.cs: IDisposable fixes.
1239 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1241 * Process.cs: class status based fixes.
1243 2002-07-20 Dick Porter <dick@ximian.com>
1245 * Process.cs: Implement file handle redirection
1247 2002-07-13 Jonathan Pryor <jonpryor@vt.edu>
1248 * CounterCreationData.cs: Implemented
1249 * CounterCreationDataCollection.cs: Implemented
1250 * CounterSample.cs: Stubbed Out
1251 * CounterSampleCalculator.cs: Stubbed Out
1252 * InstanceData.cs: Implemented
1253 * InstanceDataCollection.cs: Implemented
1254 * InstanceDataCollectionCollection.cs: Implemented
1255 * MonitoringDescriptionAttribute.cs: Implemented
1256 * PerformanceCounter.cs: Stubbed Out
1257 * PerformanceCounterCategory.cs: Stubbed Out
1258 * PerformanceCounterInstaller.cs: Stubbed Out
1259 * PerformanceCounterManager.cs: Stubbed Out
1260 * PerformanceCounterPermission.cs: Stubbed Out
1261 * PerformanceCounterPermissionAccess.cs: Implemented
1262 * PerformanceCounterPermissionAttribute.cs: Stubbed Out
1263 * PerformanceCounterPermissionEntry.cs: Stubbed Out
1264 * PerformanceCounterPermissionEntryCollection.cs: Implemented
1265 * PerformanceCounterType.cs: Implemented
1268 2002-06-25 Dick Porter <dick@ximian.com>
1270 * Process.cs: Process forking and waiting, and some support functions
1272 * ProcessStartInfo.cs: Implemented the bits needed for basic
1275 * ProcessModule.cs: Implemented
1277 * ProcessModuleCollection.cs: Mostly implemented
1279 * FileVersionInfo.cs: Implemented
1281 2002-06-16 Jonathan Pryor <jonpryor@vt.edu>
1282 * ICollectData.cs: Implemented
1283 * TraceImpl.cs: Setting IndentLevel, IndentSize should change the
1284 corresponding properties on all current TraceListeners.
1285 Also, to answer the FIXME message: Yes, the properties in TraceListener
1286 need to be [ThreadStatic] as well.
1287 * TraceListenerCollection.cs: When adding a TraceListener, the TraceListener
1288 should have its properties set to the current TraceImpl property values.
1289 * TraceListener.cs: Make indentSize, lndentLevel [ThreadStatic].
1291 2002-06-09 Jonathan Pryor <jonpryor@vt.edu>
1292 * EntryWrittenEventArgs.cs: Implemented
1293 * EntryWrittenEventHandler.cs: Implemented
1294 * EventLog.cs: Stubbed out
1295 * EventLogEntry.cs: Stubbed out
1296 * EventLogEntryCOllection.cs: Implemented.
1297 * EventLogEntryType.cs: Implemented
1298 * EventLogInstaller.cs: Stubbed out
1299 * EventLogPermission.cs: Stubbed out
1300 * EventLogPermissionAccess.cs: Implemented
1301 * EventLogPermissionAttribute.cs: Stubbed out
1302 * EventLogPermissionEntry.cs: Stubbed out
1303 * EventLogPermissionEntryCollection.cs: Stubbed out
1304 * EventLogTraceListener.cs: Stubbed out
1306 2002-05-29 Jonathan Pryor <jonpryor@vt.edu>
1307 * DefaultTraceListener.cs: Implemented MONO_TRACE support
1309 2002-05-27 Jonathan Pryor <jonpryor@vt.edu>
1310 * Moved public API documentation for the following files to the
1311 /mcs/docs/apidocs/xml/en/System.Diagnostics directory:
1313 - DefaultTraceListener.cs
1314 - DiagnosticsConfigurationHandler.cs
1316 - TextWriterTraceListener.cs
1320 - TraceListenerCollection.cs
1323 2002-04-10 Jonathan Pryor <jonpryor@vt.edu>
1325 * TraceListenerCollection.cs: Corrected indexer property to provide the
1326 correct return value and implement the IList indexer property correctly.
1328 2002-04-07 Jonathan Pryor <jonpryor@vt.edu>
1330 * TraceListener.cs: Fix stack overflow bug
1331 * DefaultTraceListener.cs: Implement log file support
1333 2002-04-04 Dick Porter <dick@ximian.com>
1335 * ThreadWaitReason.cs:
1337 * ThreadPriorityLevel.cs:
1338 * ProcessWindowStyle.cs:
1339 * ProcessThreadCollection.cs
1341 * ProcessStartInfo.cs:
1342 * ProcessModuleCollection.cs: Stub out more classes needed for Process
1344 2002-03-31 Dick Porter <dick@ximian.com>
1347 * ProcessPriorityClass.cs:
1349 * FileVersionInfo.cs: Stub out classes needed for Process
1351 2002-03-08 Jonathan Pryor <jonpryor@vt.edu>
1353 * Debug.cs: Clean up (lots of code can be shared with Trace.cs, which
1354 is why TraceImpl.cs is introduced), "DEBUG" conditional support
1355 * TraceListener.cs: Proper implementation of Dispose pattern;
1356 implementatino of non-abstract methods in terms of abstract methods
1357 * TraceListenerCollection.cs: check 'object' types before adding
1358 * TextWriterTraceListener.cs: properly implement Dispose pattern;
1359 handle NeedIndent and WriteIndent
1360 * Trace.cs: new file; provides Trace functionality, "TRACE" conditional
1362 * DefaultTraceListener.cs: new file; the default trace listener
1364 2002-01-17 Miguel de Icaza <miguel@ximian.com>
1365 * TraceListenerCollection.cs: Remove Warnings.
1367 2002-01-06 Ravi Pratap <ravi@ximian.com>
1368 * Switch.cs, TraceListenerCollection.cs : Decorate incomplete bits
1369 with the MonoTODO attribute.
1371 2002-01-04 John R. Hicks <angryjohn69@nc.rr.com>
1372 * Added Debug.cs to the build.
1374 2002-01-04 John R. Hicks <angryjohn69@nc.rr.com>
1375 * Added preliminary TraceListenerCollection.cs to the build.
1377 2002-01-04 John R. Hicks <angryjohn69@nc.rr.com>
1378 * Added TraceListener.cs, TextWriterTraceListener.cs, and
1379 DefaultTraceListener.cs to the build and moved them into the
1382 2002-01-04 John R. Hicks <angryjohn69@nc.rr.com>
1383 * Added DiagnosticsConfigurationHandler.cs to the build.
1385 2001-09-09 Nick Drochak <ndrochak@gol.com>
1386 * BooleanSwitch.cs: Make this class use it's parent class's features. Namely, use SwitchSetting
1387 so that we can get OnSwitchSettingChanged() to fire for free.
1389 2001-09-09 Nick Drochak <ndrochak@gol.com>
1390 * ChangeLog: added this file
1391 * Switch.cs: call OnSwitchSettingChanged() when the switch setting is, yes you gessed it, changed.