2008-12-08 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System / System.Diagnostics / ChangeLog
1
2 2008-11-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
3
4         * PerformanceCounter.cs: add 2 workarounds for known problems. I will
5         add the corresponding test cases later.
6
7 2008-11-13  Bill Holmes  <billholmes54@gmail.com>
8
9         * Process.cs : Adding an implementation for WaitForInputIdle
10           to call the an internal call.  The internal call is only 
11           implemented properly on Windows.
12           
13         Code is contributed under MIT/X11 license.
14
15 2008-11-06  Jonathan Chambers  <joncham@gmail.com>
16
17         * Process.cs : Use DuplicateHandle when redirecting
18         StdInput and StdOutput. Fixes bug #436291.
19
20 Mon Oct 13 14:39:52 CEST 2008 Paolo Molaro <lupus@ximian.com>
21
22         * Process.cs: added icall and implementation of many memory-related
23         query methods (bug #434473).
24
25 2008-09-20  Gert Driesen  <drieseng@users.sourceforge.net>
26
27         * PerformanceCounter.cs:
28         * Stopwatch.cs:
29         * TraceImpl.cs: Fixed line endings.
30
31 2008-09-20  Gert Driesen  <drieseng@users.sourceforge.net>
32
33         * DiagnosticsConfigurationHandler.cs (AddTraceAttributes): Avoid
34         wrapping configuration errors thrown during initialization of
35         TraceImpl. Fixed line endings.
36
37 2008-09-18  Paolo Molaro <lupus@ximian.com>
38
39         * CounterSampleCalculator.cs: added more calculated types.
40         * PerformanceCounter.cs: NextValue() works as well as RawValue.
41
42 2008-09-10  Bill Holmes  <billholmes54@gmail.com>
43
44         * Process.cs : Update the fields of ProcessAsyncReader to 
45           match MonoSocketAsyncResult metadata/socket-io.h
46
47         Contributed under MIT/X11 license.
48
49 2008-09-09  Jonathan Pryor  <jpryor@novell.com>
50
51         * TraceImpl.cs:
52           - Remove the "lock-free" code, which (come to think of it) would be 
53             faulty in a multithreaded environment anyway because the "other"
54             threads won't wait (block) until initialization is complete...
55           - Add InitOnce() calls to all public properties, so that
56             `Debug.AutoFlush=true' will cause InitOnce() to be loaded, lest
57             a `Debug.AutoFlush=true; Debug.Listeners.Add(...)` sequence cause
58             .AutoFlush=true to be ignored as the InitOnce implied by .Add() 
59             will "overwrite" the .AutoFlush.
60           - Split up TraceListenerCollection creation from DefaultTraceListener 
61             addition, as TraceListenerCollection.Add() calls back into 
62             TraceImpl, so if these aren't separate we get an infinite loop
63             and never actually initialize anything.
64           - Fixes #424370.
65         * TraceListenerCollection.cs: Add a TraceListenerCollection(bool)
66           constructor, which provides a way to NOT add the
67           DefaultTraceListener (needed by TraceImpl; see above).
68
69 2008-08-06  Sebastien Pouliot  <sebastien@ximian.com>
70
71         * Debug_2_1.cs: Add missing [Conditional] attributes.
72
73 2008-08-02  Gert Driesen  <drieseng@users.sourceforge.net>
74
75         * DelimitedTraceListener.cs: Changed accessibility of
76         GetSupportedAttributes to protected internal.
77         * DiagnosticsConfigurationHandler.cs: Use GetSupportedAttributes to
78         allow custom attributes on tracelisteners. Fixes bug #413203.
79         * TraceListener.cs: Changed accessibility of GetSupportedAttributes
80         to protected internal. Removed MonoTODO on GetSupportedAttributes and
81         Attributes. Fixed line endings.
82
83 2008-08-01  Paolo Molaro <lupus@ximian.com>
84
85         * CounterCreationData.cs, PerformanceCounterCategory.cs: more
86         checks and default type fix.
87
88 2008-07-28  Dick Porter  <dick@ximian.com>
89
90         * Process.cs: When passing handle references around, it needs to
91         be duplicated and freed so the OS doesn't close it.  Makes the
92         testcase in 410743 work again now the underlying bug has been
93         fixed.
94
95 2008-07-27  Zoltan Varga  <vargaz@gmail.com>
96
97         * Process.cs (SetExitCallbackIfNeeded): Avoid a race condition by not
98         checking for HashExited.
99
100 2008-06-27  Atsushi Enomoto  <atsushi@ximian.com>
101
102         * DiagnosticsConfigurationHandler.cs: quick build fix (hopefully).
103
104 2008-06-26  Gert Driesen  <drieseng@users.sourceforge.net>
105
106         * DiagnosticsConfigurationHandler.cs: On 2.0 profile, throw
107         ConfigurationErrorsException when any attribute other than 'Name'
108         is found when referencing a shared listener. Fixes bug #404054.
109         Added support for the traceOutputOptions attribute on 2.0 profile.
110         Fixes bug #403583. 
111
112 2008-06-21  Robert Jordan  <robertj@gmx.net>
113
114         * Process.cs (Start_common): UserName may be null or empty.
115         Fixes bug  #350543.
116
117 2008-06-19  Dick Porter  <dick@ximian.com>
118
119         * Process.cs: Match the buffer sizes of StreamReader and
120         MonoSyncFileStream for redirected stdout and stderr.  Fixes bug
121         401225.
122
123 2008-05-02  Zoltan Varga  <vargaz@gmail.com>
124
125         * TraceImpl.cs: Update the IndentLevel property of this class when Indent ()
126         or Unindent () are called. Fixes #385666.
127
128 2008-03-26  Dick Porter  <dick@ximian.com>
129
130         * FileVersionInfo.cs: Patch from Gert Driesen
131         (gert.driesen@pandora.be) for bug 355717.
132
133 2008-03-19  Zoltan Varga  <vargaz@gmail.com>
134
135         * Stopwatch.cs: Fix visibility of GetTimestamp () method.
136
137 Thu Feb 28 19:52:30 CET 2008 Paolo Molaro <lupus@ximian.com>
138
139         * CounterCreationData.cs, PerformanceCounterCategory.cs,
140         PerformanceCounter.cs: bugfixes, icalls for categories,
141         more methods implemented.
142
143 Wed Feb 27 20:00:04 CET 2008 Paolo Molaro <lupus@ximian.com>
144
145         * CounterSample.cs, CounterSampleCalculator.cs, PerformanceCounter.cs,
146         PerformanceCounterCategory.cs, PerformanceCounterCategoryType.cs:
147         beginning of the performance counter implementation.
148
149 Tue Feb 26 18:37:13 CET 2008 Paolo Molaro <lupus@ximian.com>
150
151         * Stopwatch.cs: use an hires monotonic clock.
152
153 2008-01-23  Gert Driesen  <drieseng@users.sourceforge.net>
154
155         * FileVersionInfo.cs (GetVersionInfo): Resolve filename to absolute
156         path, and throw FileNotFoundException if it does not exist.
157
158 2007-12-22  Gert Driesen  <drieseng@users.sourceforge.net>
159
160         * Process.cs: In PriorityClass setter, first check whether value is
161         valid and remove LAMESPEC since the documentation has been corrected
162         for .NET 3.5. Code formatting.
163
164 2007-12-19  Dick Porter  <dick@ximian.com>
165
166         * Process.cs: Check that the process has been started before
167         getting or setting the priority class.  Fixes bug 348415.
168
169 2007-12-10  Miguel de Icaza  <miguel@novell.com>
170
171         * DefaultTraceListener.cs: By default set the AssertUiEnabled to
172         false, as this is what we had previously and some broken
173         applications (Tomboy) are too trigger happy with Debug.Assert. 
174
175         Also, we now load the Windows.Forms code on demand, instead of
176         preloading it on the static ctor to reduce memory usage.
177
178 2007-12-08  Gert Driesen  <drieseng@users.sourceforge.net>
179
180         * LocalFileEventLog.cs: To allow entry to be fully written before
181         attempting to read it, added small sleep period in the Created event
182         of the FSW.
183
184 2007-12-04  Gert Driesen  <drieseng@users.sourceforge.net>
185
186         * Process.cs: Modified StartInfo to throw ArgumentNullException when
187         value is set to null, instead of ArgumentException. Remove check if
188         file name is rooted and exists when UseShellExecute is false, and let
189         runtime handle this. Fixes bug #3455655. When a process cannot be
190         started, do not access ProcessStartInfo.EnvironmentVariables since that
191         would not allow us to re-use the instance when changing
192         UseShellExecute. Added argument check in Start (ProcessStartInfo).
193         Code formatting.
194
195 2007-11-16  Jb Evain  <jbevain@novell.com>
196
197         * Debug_2_1.cs: simply write debug messages to the
198         console.
199
200 2007-11-15  Dick Porter  <dick@ximian.com>
201
202         * Process.cs: Pass the process handle to GetModules_internal();
203
204 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
205
206         * Process.cs : ... and it exposed some missing attributes.
207
208 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
209
210         * Process.cs : oops, SessionId was int.
211
212 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
213
214         * Process.cs : added missing SessionId (NIE).
215
216 2007-10-30  Robert Jordan  <robertj@gmx.net>
217
218         * Process.cs: Wrap the redirected streams with a stream
219         that provides real async Begin/Read|Write operations.
220         Fixes bug #319829.
221
222 2007-09-25  Miguel de Icaza  <miguel@novell.com>
223
224         * Process.cs: Return an empty collection to prevent crashes;
225         Fixes #319946
226
227 Tue Sep 25 18:03:37 CEST 2007 Paolo Molaro <lupus@ximian.com>
228
229         * Process.cs: eliminate the console encoding logic which was
230         duplicated from System.Console and just use Console.Out.Encoding
231         (bug #328162).
232
233 2007-09-21  Gert Driesen  <drieseng@users.sourceforge.net>
234
235         * DiagnosticsConfigurationHandler.cs: Rename ValidateIntegralValue
236         to GetSwitchValue. On 2.0 profile, leave the type conversion to
237         Switch implementations. Minor corrections to exception messages to
238         match MS.
239         * Switch.cs: Avoid unnecessary inits. On 2.0 profile, catch and
240         rethrow exceptions in setter for Value. Do not hide exceptions thrown
241         in GetConfigFileSetting. Only set value from config file if switch is
242         actually defined.
243         * SourceSwitch.cs: Use SwitchSetting for getting/storing value instead
244         of new field. In OnValueChanged, parse enum value.
245         * TraceSwitch.cs: If SwitchSetting is changed to value > 4, then set
246         it to Verbose. In OnValueChanged, parse value case-insensitively, and
247         assign it to SwitchSetting (to allow other integral values).
248
249 2007-09-05  Atsushi Enomoto  <atsushi@ximian.com>
250
251         * EventLog.cs : added cosmetic 2.0 attributes on newly added members.
252
253 2007-09-05  Atsushi Enomoto  <atsushi@ximian.com>
254
255         * EventLog.cs, EventLogImpl.cs, LocalFileEventLog.cs, NullEventLog.cs,
256           Win32EventLog.cs : added missing members, will be left unsupported
257           in non-Win32 impl and left unimplemented in Win32.
258         * CounterCreationDataCollection.cs : in 2.0 OnValidate() is overriden
259           instad of OnInsert().
260         * Process.cs : removed StandardErrorEncoding and
261           StandardOutputEncoding. They do not exist anymore.
262
263 2007-09-03  Atsushi Enomoto  <atsushi@ximian.com>
264
265         * ProcessStartInfo.cs : Implemented Verbs. It is done.
266
267 2007-09-03  Atsushi Enomoto  <atsushi@ximian.com>
268
269         * Process.cs, ProcessStartInfo.cs : user info support (on windows).
270
271 2007-08-23  Robert Jordan  <robertj@gmx.net>
272
273         * Process.cs: implement PriorityClass. Fixes #81756.
274
275 Mon Aug 20 12:41:09 CEST 2007 Paolo Molaro <lupus@ximian.com>
276
277         * Process.cs: implemented icall for system/user times.
278
279 2007-08-14  Gert Driesen  <drieseng@users.sourceforge.net>
280
281         * EventLog.cs: Do not allow all whitespace machine name. Do nothing
282         when setting the same value for EnableRaisingEvents, and only modify
283         value of field when enable/disable succeeded. Treats log name case
284         insensitively on all platforms, and perform reset when the log name
285         is changed. Validate new machine name in property, and treat it
286         case-insensitively. Perform reset when source is modified, and log
287         name was not explicitly set. When EventLog is closed, also disable
288         event watcher.
289         * LocalEventLog.cs: In Close, clean-up the FileSystemWatcher. Add
290         locking to Created eventhandler to avoid duplicate notifications.
291         * Win32EventLog.cs: Cache handle for reading from eventlog. In Close,
292         close the read handle. Implement support for watching win32 eventlog.
293         Fixes bug #82436.
294
295 2007-08-08  Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
296
297         * Process.cs: added StandardOutputEncoding and StandardErrorEncoding
298         properties. Bug #82262 fixed.
299
300 2007-08-06  Atsushi Enomoto  <atsushi@ximian.com>
301
302         * Process.cs, ProcessStartInfo.cs : added StandardOutputEncoding
303           and StandardErrorEncoding.
304
305 2007-08-06  Atsushi Enomoto  <atsushi@ximian.com>
306
307         * PerformanceCounterCategory.cs PerformanceCounter.cs :
308           added missing 2.0 stuff (unimplemented, where things are anyways
309           unimplemented in 1.x layer).
310
311 2007-08-06  Atsushi Enomoto  <atsushi@ximian.com>
312
313         * PerformanceCounterInstanceLifetime.cs
314           PerformanceCounterCategoryType.cs : new.
315         * ICollectData.cs ProcessStartInfo.cs
316           InstanceDataCollectionCollection.cs PerformanceCounter.cs
317           InstanceDataCollection.cs Process.cs :
318           cosmetic attributes cleanup.
319
320 2007-08-03  Jb Evain  <jbevain@novell.com>
321
322         * FileVersionInfo.cs: force the use of the params
323         AppendFormat method of StringBuilder as it is the only
324         one accessible in 2.1 and in the previous versions.
325
326 2007-08-03  Jb Evain  <jbevain@novell.com>
327
328         * FileVersionInfo.cs: remove CAS checks for 2.1.
329
330 2007-08-03  Jb Evain  <jbevain@novell.com>
331
332         * Process.cs: disable StartExistCallbackIfNeeded in 2.1.
333
334 2007-08-03  Jb Evain  <jbevain@novell.com>
335
336         * ProcessThreadCollection.cs
337           ProcessModuleCollection.cs: use our own collection base
338           for the 2.1 profile, as ReadOnlyCollectionBase does not exist
339           in 2.1, and they are internalized by the linker.
340
341 2007-08-02  Atsushi Enomoto  <atsushi@ximian.com>
342
343         * EventLogTraceListener.cs : fixed wrong 2.0 dependency in 1.x.
344
345 2007-08-02  Atsushi Enomoto  <atsushi@ximian.com>
346
347         * EventLogTraceListener.cs : implemented.
348
349 2007-08-02  Atsushi Enomoto  <atsushi@ximian.com>
350
351         * EventLogImpl.cs
352           EventLog.cs
353           LocalFileEventLog.cs : Implemented EntryWritten event support.
354         * Win32EventLog.cs, NullEventLog.cs : they need stub overrides.
355         * EventLogEntry.cs : [MonitoringDescription].
356         * DiagnosticsConfigurationHandler.cs : [Obsolete]
357
358 2007-08-01  Atsushi Enomoto  <atsushi@ximian.com>
359
360         * DefaultTraceListener.cs : implemented AssertUiEnabled using MWF.
361
362 2007-08-01  Atsushi Enomoto  <atsushi@ximian.com>
363
364         * CounterSample.cs : implemented missing 2.0 equality stuff.
365         * CounterSampleCalculator.cs : static in 2.0.
366
367 2007-07-24 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
368
369         * Process.cs: use the default encoding or the windows input/output
370         encodings for the process input/output/error streams. Bug #80838 fixed.
371
372 2007-07-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
373
374         * Process.cs: don't send empty lines that are not in the input. Fixes
375         bug #79529.
376
377 2007-07-11  Ankit Jain  <jankit@novell.com>
378
379         * ProcessStartInfo.cs (WorkingDirectory.set): Don't set
380         working_directory to null.
381
382 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
383
384         * TraceSourceInfo.cs : new class for storing configuration data.
385         * TraceSource.cs : TraceEventCache arguments should be null (they are
386           nullable). Use TraceSourceInfo above.
387         * DiagnosticsConfigurationHandler.cs : removed hack to store listeners
388           in named sources, not traceimpl. Create TraceSource objects from
389           configuration data.
390
391 2007-05-18  Marek Safar  <marek.safar@gmail.com>
392
393         * DiagnosticsConfigurationHandler.cs: Fixed 1.1 build.
394
395 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
396
397         * XmlWriterTraceListener.cs : open file in shared r/w mode.
398         * DiagnosticsConfigurationHandler.cs : process <sharedListeners>
399           elements first, so that named listeners work fine.
400         * EventLogTraceListener.cs : added 2.0 stubs.
401         * CorrelationManager.cs : removed todo.
402
403 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
404
405         * TraceListener.cs : in TraceTransfer(), use TraceEvent() (some
406           derived classes depend on this change).
407         * DelimitedListTraceListener.cs : implemented.
408
409 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
410
411         * EventLogPermissionAccess.cs ProcessPriorityClass.cs
412           ProcessWindowStyle.cs ThreadWaitReason.cs TraceImpl.cs
413           Trace.cs ThreadPriorityLevel.cs EventLogEntryType.cs
414           PerformanceCounterPermissionAccess.cs PerformanceCounterType.cs
415           TraceListener.cs ThreadState.cs : cosmetic API fixes.
416         * SwitchAttribute.cs : implemented GetAll().
417
418 2007-05-17  Atsushi Enomoto  <atsushi@ximian.com>
419
420         * TraceOptions.cs : new enum.
421         * TraceListener.cs : support TraceOutputOptions. Fixed missing
422           NET_2_0 condition in TARGET_JVM section.
423         * TraceSwitch.cs, BooleanSwitch.cs :
424           Added missing constructors and OnValueChanged().
425         * Trace.cs, TraceImpl.cs :
426           Added CorrelationManager and UseGlobalLock.
427         * TraceEventCache.cs : initialize property values at construction.
428         * Switch.cs : added XmlIgnore on Attributes.
429
430 2007-05-15 Adar Wesley <adarw@mainsoft.com>
431
432         * Trace.cs: added missing method Refresh.
433
434 2007-05-14  Atsushi Enomoto  <atsushi@ximian.com>
435
436         * EventTypeFilter.cs
437           TraceFilter.cs
438           SourceFilter.cs
439           SwitchLevelAttribute.cs
440           DelimitedListTraceListener.cs
441           SwitchAttribute.cs : new files in 2.0.
442         * DiagnosticsConfigurationHandler.cs : partial support for named
443           shared listeners.
444         * XmlWriterTraceListener.cs : cosmetic corcompare fixes. Added
445           missing todos.
446         * TraceListener.cs : added missing 2.0 stuff. Implemented Filter.
447         * DefaultTraceListener.cs : trivial ComVisible fix.
448
449 2007-05-10  Atsushi Enomoto  <atsushi@ximian.com>
450
451         * TextWriterTraceListener.cs : open log file in readwrite share mode.
452           This fixes bug #81296.
453
454 2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
455
456         * TraceImpl.cs:
457         * TraceListener.cs:
458         for TARGET_JVM used Thread Local Storage istead 
459         Thread-Relative Static Fields 
460
461 2007-05-02  Jonathan Chambers  <joncham@gmail.com>
462
463         * Stopwatch.cs : Implement high performance stopwatch on windows.
464
465 2007-04-19  Atsushi Enomoto  <atsushi@ximian.com>
466
467         * XmlWriterTraceListener.cs : new file, implementated.
468         * TraceListener.cs : implemented 2.0 members.
469
470 2007-03-04  Vladimir Krasnov  <vlaimdirk@mainsoft.com>
471
472         * DiagnosticsConfigurationHandler.cs: removed configuration init in
473         TARGET_JVM since not supported
474
475 2007-02-02  Gert Driesen  <drieseng@users.sourceforge.net>
476
477         * EventLogImpl.cs: When no log name is specified, return zero-length
478         string for LogDisplayName.
479
480 2007-01-28 Ilya Kharmatsky <ilyak -at- mainsoft.com>
481
482         * TraceEventCache.jvm.cs: added as a stub class.
483
484 Tue Jan 23 17:19:13 CET 2007 Paolo Molaro <lupus@ximian.com>
485
486         * ProcessStartInfo.cs: put the fields in the order expected
487         by the runtime code.
488
489 2007-01-18  Atsushi Enomoto  <atsushi@ximian.com>
490
491         * Switch.cs : added missing .ctor(), Attributes, Value, 
492           GetSupportedAttributes() and OnValueChanged().
493         * DiagnosticsConfigurationHandler.cs : added some hacky handler for
494           new "sources" element. Don't wrap another ConfigurationException.
495         * TraceListener.cs : added missing trace methods.
496         * TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
497           TraceEventCache.cs, TraceEventType.cs, SourceSwitch.cs:
498           added missing 2.0 stuff, mostly just stubs.
499
500 2007-01-12  Miguel de Icaza  <miguel@novell.com>
501
502         * Trace.cs: Add a number of 2.0 overloads.
503
504 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
505
506         * Process.cs: Allow GetProcesses and GetProcessById overloads with 
507         machine name to work for local machine.
508
509 2006-12-29  Robert Jordan  <robertj@gmx.net>
510
511         * TraceImpl.cs (Assert): Include line numbers in the stack trace
512         emitted by Assert (). Fixes bug #80400.
513
514 Thu Dec 14 20:24:09 CET 2006 Paolo Molaro <lupus@ximian.com>
515
516         * Process.cs: if a process object is restarted, close the
517         previous process handle (bug #80143).
518
519 2006-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
520
521         * Process.cs: the Process returned by the static Start method never had
522         the right ProcessStartInfo. Fixes bug #80019.
523
524 2006-10-13  Atsushi Enomoto  <atsushi@ximian.com>
525
526         * DiagnosticsConfigurationHandler.cs : be more skeptic on
527           broken configuration file.
528
529 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
530
531         * DefaultTraceListener.cs: TARGET_JVM
532
533 2006-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
534
535         * Process.cs: fix operation number to be 8. The other one was working
536         because the default is to wait for input on the file descriptor.
537
538 2006-09-05  Gert Driesen  <drieseng@users.sourceforge.net>
539
540         * Win32EventLog.cs: Removed workarounds for bug #79152 and bug #79117
541         now that these have been fixed. Release unmanaged memory that was
542         allocated for replacement strings.
543
544 2006-08-27  Gert Driesen  <drieseng@users.sourceforge.net>
545
546         * NullEventLog.cs: Added dummy GetLogNames implementation.
547         * EventLogImpl.cs: Moved GetEventLogs implementation to base class.
548         Added abstract GetLogNames method. Added ValidateCustomerLogName
549         method which should be called by eventlog providers when creating a
550         new log to ensure the significant part of the log name is unique, does
551         not match any of the special log names and does not match an exist event
552         source.
553         * Win32EventLog.cs: Validate customer log name when creating new log.
554         Moved GetEventLogs implementation to base class. Added GetLogNames
555         method.
556         * LocalFileEventLog.cs: Merged CreateLogStore into CreateEventSource.
557         Validate customer log name when creating new log. Moved GetEventLogs
558         implementation to base class. Added GetLogNames method.
559
560 2006-08-26  Gert Driesen  <drieseng@users.sourceforge.net>
561
562         * Win32EventLog.cs: Fixed error messages. Use RegisterEventSource
563         pinvoke when opening eventlog for writing entries.
564
565 2006-08-26  Gert Driesen  <drieseng@users.sourceforge.net>
566
567         * Win32EventLog.cs: Added and documented workarounds for bug #79117
568         and bug #79152.
569
570 2006-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
571
572         * LocalFileEventLog.cs: When event log store does not exist, then we
573         do not need to perform a case-insensitive lookup of the log name.
574
575 2006-08-20  Gert Driesen  <drieseng@users.sourceforge.net>
576
577         * EventLog.cs: Removed namespace import.
578         * EventInstance.cs: Added range checks and check whether specified
579         entry type is defined.
580
581 2006-08-20  Gert Driesen  <drieseng@users.sourceforge.net>
582
583         * EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
584         Obsolete attribute to correct property.
585         * EventSourceCreationData.cs: Updated copyright. For internal ctor,
586         set log name to "Application" if value is null or zero-length string.
587         * EventLogImpl.cs: EventImpl now acts as base class for event log 
588         implemenations.
589         * NullEventLog.cs: Modified to implement new abstract methods of base
590         class. Removed factory class.
591         * EventLog.cs: EventLog implementation that delegates just about 
592         everything to individual eventlog providers. To specify the event log
593         implementation to use, the MONO_EVENTLOG_TYPE environment variable can
594         be used. Possible values are:
595         - win32 : read/write entries using the native win32 eventlog
596         - local[:path] : read/write entries as files to a local directory
597         - null : silently ignore all entries
598         The default is "null" on unix (and versions of Windows before NT,
599         meaning Windows 98, ...), and "win32" on Windows NT (and higher).
600         When "the local" implementation is used, the directory in which to 
601         store the event logs, event sources and entries can be specified as 
602         part of MONO_EVENTLOG_TYPE environment variable using the syntax 
603         "local:<path>" (eg. local:/home/myuser/mono/eventlog).
604         * LocalFileEventLog.cs: Event log implementation which uses a local
605         file store. The directory to use for persistence can be specified
606         as part of the MONO_EVENTLOG_TYPE environment variable (see above).
607         If that directory is not explicitly set, then the following directory
608         will be used for storing eventlog entries:
609         - windows       : %APPDATA%\mono\eventlog
610         - unix          : /var/lib/mono/eventlog
611         On unix, the directory permission for individual eventlog log 
612         directories will be set to 777 (with +t bit) allowing everyone to
613         read and write eventlog entries while only allowing entries to be
614         deleted by the user(s) that created them.
615         Format of log files was modified to allow it contain all necessary
616         information for an event log entry.
617         * Win32EventLog.cs: Event log implementation for Windows NT and 
618         higher which uses the Win32 native event log for reading/writing
619         eventlog entries, and which uses the registry to store event log and
620         event source registration information.
621         * EventLogEntryCollection.cs: Delegate implementation to event log
622         implementation. Use lazy init for enumerating entries. Cache current
623         item in 2.0 profile.
624
625 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
626
627         * LocalFileEventLog.cs : change lengthy environment variable name.
628           MONO_LOCAL_EVENTLOG_PATH -> MONO_EVENTLOG_PATH.
629
630 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
631
632         * EventLogImpl.cs, EventLogEntryCollection.cs, EventLog.cs :
633           some rework to support actual event log implementations.
634         * NullEventLog.cs, LocalFileEventLog.cs :
635           new files. The former (default) implementation does nothing for
636           any event log features. The latter implements local file based
637           event logs.
638
639 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
640
641         * UnixEventLog.cs, EventLogEntry.cs, EventSourceCreationData.cs,
642           EventLogImpl.cs, Win32EventLog.cs, EventLogEntryCollection.cs,
643           EventLog.cs:
644           Reverted previous two changes that does not work at all.
645
646 2006-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
647
648         * EventLog.cs: For now, Use null implementation.
649
650 2006-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
651
652         * EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
653         Obsolete attribute to correct property.
654         * EventSourceCreationData.cs: Updated copyright. For internal ctor,
655         set log name to "Application" if value is null or zero-length string.
656         * EventLogImpl.cs: EventImpl now acts as base class for event log 
657         implemenations. Added NullEventLog implementation, which is not used
658         at the moment.
659         * EventLog.cs: EventLog implementation that uses registry for
660         keeping track of logs and sources to match .NET (and Windows). When
661         running on Windows NT (and higher), event entries are written to
662         the native win32 event log.  Reading event entries is not yet working
663         for Windows. On linux, we use a local file store (based on patch by 
664         Atsushi).
665         * UnixEventLog.cs: Event log implementation for linux which uses a
666         local file store.
667         * Win32EventLog.cs: Event log implementation for Windows NT and 
668         higher which uses the Win32 native event log.
669         * EventLogEntryCollection.cs: Delegate implementation to event log
670         implemenation. Use lazy init for enumerating entries.
671
672 2006-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
673
674         * Process.cs: reset the 'start' time if we wait for stdout reading to
675         be completed.
676
677 2006-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
678
679         * Process.cs: add support for 2.0 asynchronous reads on stdout and
680         stderr.
681
682 2006-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
683
684         * EventSourceCreationData.cs: Marked ctor internal, and removed ctor.
685         Throw ArgumentOutOfRangeException if negative value for CategoryCount
686         is set.
687
688 2006-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
689
690         * EventInstance.cs: Added 2.0 class.
691         * EventSourceCreationData.cs: Added 2.0 class.
692         * OverflowAction.cs: Added 2.0 enum.
693
694 2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>
695
696         * EventLogEntry.cs: Add a linkdemand for unrestricted on class.
697         * EventLogTraceListener.cs: Add a linkdemand for unrestricted on class
698         * FileVersionInfo.cs: Add a linkdemand for unrestricted on class. Add
699         an imperative demand for FileIOPermission.Read on GetVersionInfo 
700         method. Change ToString method to use a StringBuilder.
701         * PerformanceCounterCategory.cs: Add a linkdemand for unrestricted on
702         class.
703         * PerformanceCounterManager.cs: Add a linkdemand for unrestricted on 
704         class. Add [Obsolete] for NET_2_0 profile.
705         * Process.cs: Add a linkdemand and an inheritancedemand for 
706         unrestricted on class.
707         * ProcessStartInfo.cs: Add a linkdemand for unrestricted on class.
708
709 2006-07-16  Andrew Skiba <andrews@mainsoft.com>
710
711         * Process.cs: throw FileNotFoundException earlier; give more
712         diagnostics.
713
714 2006-05-16  Dick Porter  <dick@ximian.com>
715
716         * Process.cs: Dispose the handle from a destructor too
717
718 2006-04-04  Atsushi Enomoto  <atsushi@ximian.com>
719
720         * Stopwatch.cs:
721           Zoltan was quicker to add it, here I put my implementation ;-)
722         * Process.cs :
723           Added some missing long members (not implemented anyways).
724         * DataReceivedEventHandler.cs DataReceivedEventArgs.cs :
725           added new 2.0 types.
726
727 2006-04-01  Zoltan Varga  <vargaz@gmail.com>
728
729         * Stopwatch.cs: New file.
730
731 2006-03-31  Zoltan Varga  <vargaz@gmail.com>
732
733         * Debug.cs: Add net 2.0 Print methods.
734
735 2006-03-03  Dick Porter  <dick@ximian.com>
736
737         * Process.cs: Close redirected pipes on errors.  Fixes bug 77514.
738
739 2006-01-12  Ben Maurer  <bmaurer@andrew.cmu.edu>
740
741         * ConsoleTraceListener.cs: New 2.0 class
742
743 2005-11-17  Dick Porter  <dick@ximian.com>
744
745         * Process.cs: Split Start_common into Start_shell and
746         Start_noshell, which call ShellExecuteEx and CreateProcess
747         respectively.  Fixes bug 76670.
748
749 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
750
751         * Process.cs: deal with the fact that someone can enable raising events
752         and/or registed a Exited delegate before and *after* Start is called for
753         the process. Only queue the exit callback in the threadpool when it's
754         possible and requested. Fixes bug #76129.
755
756 2005-08-09  Gert Driesen <drieseng@users.sourceforge.net>
757
758         * EventLog.cs: Fixed Designer attribute to match MS.NET.
759         * ICollectData.cs: Added marshalling attribute to match MS.NET.
760         * PerformanceCounter.cs: Fixed Designer attribute to match MS.NET.
761         * Process.cs: Fixed Designer attribute to match MS.NET, modified
762         * ProcessModule.cs: Fixed Designer attribute to match MS.NET.
763         * ProcessThread.cs: Fixed Designer attribute to match MS.NET.
764         DesignerSerializationVisibility on StartInfo to match MS.NET, changed
765         Category attribute on Exited event to match MS.NET.
766
767 2005-06-09  Gert Driesen <drieseng@users.sourceforge.net>
768
769         * TraceImpl.cs: Adjust internal indentlevel and indentsize before 
770         passing on to listeners. Fixes some test failures.
771
772 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
773
774         * DefaultTraceListener.cs: s/MONO_TRACE/MONO_TRACE_LISTENER/. The
775         runtime uses MONO_TRACE too...
776
777 2005-05-31  Sebastien Pouliot  <sebastien@ximian.com>
778
779         * PerformanceCounterPermissionEntry.cs: Added more 2.0 validations for
780         machine names and PerformanceCounterPermissionAccess.
781
782 2005-02-22 Jonathan Pryor  <jonpryor@vt.edu>
783
784         * TraceImpl.cs: More Thread-safety fixes.  I have to lock on
785           Listeners.SyncRoot as we're traversing the collection and can't let the
786           collection change from underneath us while we're iterating over it
787           (alternately, we could clone the collection and iterate over the clone
788           without having locking issues -- assuming we had a lock-free clone -- 
789           but this would kill the GC).  Fixes 69964.  Only define lock_ if we're 
790           using the lock-free initialization routine; it's not used otherwise.
791
792 2005-01-18 Jonathan Pryor  <jonpryor@vt.edu>
793
794         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfiguration): 
795           Use a lock-free algorithm for creating the settings information.
796         * TraceImpl.cs (InitOnce): Use a lock-free algorithm for creating the
797           listeners collection and initializing the world.
798
799 2005-01-18 Jonathan Pryor  <jonpryor@vt.edu>
800
801         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfiguration): Don't 
802           read the .config file from the static ctor (again), as if it fails we'll 
803           get a TypeLoadException -- bad!  Instead, lazy-read the .config file.
804         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfigurationHandler): 
805           Require that the /switch/add/@value attribute contains only numeric values.
806         * TraceImpl.cs: Don't initialize everything in the static ctor, as if it
807           fails (due to an invalid .confg file) we get a TypeLoadException, while
808           .NET generates a ConfigurationException.  Instead, initialize everything
809           the first time the Listeners property is accessed, which allows the static
810           ctor to run without chance of failure, avoiding the TypeLoadException.
811         * TraceListenerCollection.cs: This should be thread-safe, as it's accessible
812           from a static member of TraceImpl (available through the public Debug and 
813           Trace classes).
814         * Switch.cs: Leave the original switch value alone.  If it isn't valid 
815           (i.e. numeric), the DiagnosticsConfigurationHandler will catch it.
816
817 2005-01-17 Jonathan Pryor  <jonpryor@vt.edu>
818
819         * DiagnosticsConfigurationHandler.cs: The /switch/add/@value attribute 
820           isn't optional under .NET 1.1, so make sure it exists.
821
822 2005-01-13 Jonathan Pryor  <jonpryor@vt.edu>
823
824         * DiagnosticsConfigurationHandler.cs: Make DiagnosticsConfiguration.Settings
825           thread-safe (double-checked locking isn't thread safe on .NET without
826           using a volatile variable, and setting the variable in the static
827           constructor is easier anyway).
828         * Switch.cs (GetConfigFileSetting): If the setting is non-numeric, set the
829           attribute value to the string "0".  This is apparently what .NET 1.1 does,
830           and allows the SwitchTest NUnit test to work w/o failures.
831
832 2004-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
833
834         * Process.cs: always pass the same arguments to the runtime.
835
836 2004-09-11  Sebastien Pouliot  <sebastien@ximian.com>
837
838         * EventLogPermission.cs: Completed implementation.
839         * EventLogPermissionAccess.cs: Fixed enum values.
840         * EventLogPermissionEntry.cs: Added validation for machine names.
841         * EventLogPermissionEntryCollection.cs: Added synchronization
842         of entries with the base permission class.
843         * PerformanceCounterPermission.cs: Completed implementation.
844         * PerformanceCounterPermissionAccess.cs: Fixed enum values.
845         * PerformanceCounterPermissionEntry.cs: Added validations for machine
846         and category names.
847         * PerformanceCounterPermissionEntryCollection.cs: Added synchronization
848         of entries with the base permission class.
849
850 2004-09-10  Sebastien Pouliot  <sebastien@ximian.com>
851
852         * EventLogPermission.cs: Fixed initialization (TagNames and
853         PermissionAccessType).
854         * EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added 
855         [Obsolete] to some existing elements.
856         * EventLogPermissionAttribute.cs: Added missing validation to property
857         MachineName. Fixed changes for NET_2_0.
858         * PerformanceCounterPermission.cs: Fixed initialization (TagNames and
859         PermissionAccessType).
860         * PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
861         and added [Obsolete] to some existing elements.
862         * PerformanceCounterPermissionAttribute.cs: Added missing validations
863         to properties (Path, MachineName). Fixed changes for NET_2_0.
864
865 2004-09-07  Dick Porter  <dick@ximian.com>
866
867         * Process.cs: Throw documented exceptions when getting stdin,
868         stdout or stderr and they haven't been redirected.  Check that
869         CreatePipe didn't fail, throw exceptions if it did.  Close
870         redirected streams when the process is disposed, rather than rely
871         on the GC disposing them later.  Makes timeline much happier,
872         because it could run out of file descriptors between GC
873         collections.
874
875 2004-09-06  Dick Porter  <dick@ximian.com>
876
877         * Process.cs: Make Dispose() actually dispose things.
878
879 2004-06-24  Atsushi Enomoto  <atsushi@ximian.com>
880
881         * Process.cs : quick fix for UseShellExecute=false on windows. See
882           the code comment.
883
884 2004-06-17  Lluis Sanchez Gual  <lluis@ximian.com>
885
886         * Process.cs: Added missing check in HasExited property.
887
888 2004-05-20  Gert Driesen (drieseng@users.sourceforge.net)
889
890         * EventLogPermissionAttribute.cs:
891         * PerformanceCounterPermissionAttribute.cs: adjust AllowMultiple
892         and Inherited to match .NET
893
894 2004-05-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
895
896         * Process.cs: separate the command and the arguments when calling
897         Start_internal.
898
899 2004-05-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
900
901         * Process.cs: redirecting I/O is not permitted if UseShellExecute is
902         true. Also throw if FileName is null.
903
904 2004-04-06  Lluis Sanchez Gual  <lluis@ximian.com>
905
906         * DiagnosticsConfigurationHandler.cs: If initializeData is provided,
907         use the constructor that only takes one string as parameter to
908         construct the listener. The name is set using the Name property, not the
909         constructor.
910         
911         * TextWriterTraceListener.cs: In Write*, do nothing if no writer was 
912         provided.
913
914 2004-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
915
916         * Process.cs: use the ISynchronizeInvoke object to invoke the event.
917         Implemented Close, CloseMainWindow and Kill.
918
919 2004-03-23 Ben Maurer  <bmaurer@users.sourceforge.net>
920
921         * Switch.cs: Don't throw when there is no switches section.
922
923 2004-03-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
924
925         * Process.cs: support EnableRaisingEvents + Exited event.
926
927 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
928
929         * Process.cs: patch by Gert Driesen that fixes WaitForExit when the
930         timeout is int.MaxValue.
931
932 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
933
934         * Process.cs: added environment variables setting support and also
935         send useShellExecute to the runtime.
936
937         * ProcessStartInfo.cs: support EnvironmentVariables.  MS uses
938         StringDictionary, which turns keys into lowercase. We don't do that.
939
940 2004-02-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
941
942         * Process.cs: ExitCode and ExitTime check that the process is finished.
943
944 2003-12-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
945
946         * Process.cs: if there's an error when starting the process, the 'pid'
947         field contains the GetLastError code. Use that for the Win32Exception.
948
949 2003-12-06  Martin Baulig  <martin@ximian.com>
950
951         * DefaultTraceListener: Don't use `where' in variable names.
952
953 2003-11-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
954
955         * ICollectData.cs: Fixed signature
956
957 2003-11-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
958
959         * ICollectData.cs: Added missing attribute
960
961 2003-07-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
962
963         * SRDescriptionAttribute.cs: Moved to System directory
964
965 2003-07-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
966
967         * EventLog.cs: Implementation handling
968         * EventLogImpl.cs: Added, contains an platform independent empty implementation
969         for EventLog
970
971 2003-07-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
972
973         * AlphabeticalEnumConverter.cs: Added
974         * EventLogEntry.cs: Implemented
975         * EventLogPermissionEntryCollection.cs: Fixed signature and implementation of indexer
976         * EventLogTraceListener.cs: Fixed signature
977         * PerformanceCounter.cs: Added missing attribute
978         * PerformanceCounterType.cs: Added missing attribute
979         * SRDescriptionAttribute.cs: Added and implemented
980
981 2003-07-17  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
982
983         * CounterCreationData.cs:
984         * EventLog.cs:
985         * EventLogEntry.cs:
986         * PerformanceCounter.cs:
987         * Process.cs:
988         * ProcessModule.cs:
989         * ProcessStartInfo.cs:
990         * ProcessThread.cs: Reworked attributes based on the new Consts scheme
991
992 2003-07-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
993
994         * PerformanceCounterCategory.cs: Fixed signatures
995
996 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
997
998         * PerformanceCounter.cs: Implemented or implementation added
999
1000 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1001
1002         * DiagnosticsConfigurationHandler.cs: Removed a never used variable
1003         * EventLog.cs: Small update to prevent a warning
1004         * EventLogPermission.cs: Implemented or implementation added
1005         * EventLogPermissionAttribute.cs: Implemented or implementation added
1006         * EventLogPermissionEntry.cs: Implemented or implementation added
1007         * EventLogPermissionEntryCollection.cs: Implemented or implementation added
1008         * EventLogTraceListener.cs: Implemented or implementation added
1009         * PerformanceCounterManager.cs: Implemented or implementation added
1010         * PerformanceCounterInstaller.cs: Made internal
1011         * PerformanceCounterCategory.cs: Implemented few members
1012         * PerformanceCounterPermission.cs: Implemented or implementation added
1013         * PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
1014         * PerformanceCounterPermissionEntry.cs: Implemented or implementation added
1015         * PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added
1016         
1017 2003-07-07  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1018
1019         * EventLog.cs: Removed unneccesary attribute according to corecompare
1020         * EventLogEntry.cs: Removed unneccesary attribute according to corecompare
1021         * Process.cs: Removed unneccesary attributes according to corecompare, added attribute
1022         * ProcessModule.cs: Removed unneccesary attribute according to corecompare
1023         * ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
1024         * ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature
1025
1026 2003-07-05  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1027
1028         * InstanceDataCollectionCollection.cs: Corrected wrong signature
1029         * EventLog.cs: Missing attributes added, redirected some class members
1030         * EventLogEntry.cs: Missing attributes added
1031         * EventLogInstaller.cs: Made internal
1032         
1033 2003-07-02  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1034
1035         * CounterCreationData.cs: Added missing attributes
1036         * CounterSample.cs: Implemented missing rest, fixed signature
1037         * CounterSampleCalculator.cs: Added private constructor, redirected function
1038         * Process.cs: Added attributes, added event mechanism
1039         * ProcessModule.cs: Added missing attributes
1040         * ProcessModuleCollection.cs: Redone using the already inherited-from ArrayList. Simplifies this a LOT
1041         * ProcessStartInfo.cs: Added missing attributes, moved internal fields to the begining of the file, restyling
1042         * ProcessThread.cs: Added missing attributes, added pseudo constructor
1043         * ProcessThreadCollection.cs: Implemented
1044         * PerformanceCounterPermission.cs: Fixed typo in class name
1045         * PerformanceCounterPermissionAccess.cs: Added attributes, fixed wrong member
1046         
1047 2003-03-19  Dick Porter  <dick@ximian.com>
1048
1049         * Process.cs: Implement HasExited, fixes bug 39267
1050
1051 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1052
1053         * Process.cs: throw an exception when the executable cannot be found.
1054
1055 2002-12-20  Jonathan Pryor <jonpryor@vt.edu>
1056         * DiagnosticsConfigurationHandler.cs: 
1057           - Don't assume that optional attributes are always present
1058           - <assert/> can't have any child nodes
1059           - Change in semantics: if the attribute isn't present,
1060             GetAttribute() returns null, not "".  This allows us to
1061             differentiate between an attribute not being present and an
1062             attribute with an empty value.
1063           - Translate exceptions if a TraceListener type is invalid
1064
1065 2002-12-19  Jonathan Pryor <jonpryor@vt.edu>
1066         * TraceListenerCollection.cs: IndentLevel and IndentSize shouldn't be 
1067           hardcoded; they should be set to whatever TraceImpl is using (which
1068           in turn may have been set by the .config file, so we should get the
1069           user-specified values in added listeners).
1070         * TraceListener.cs: Make sure that indents are initially written.  This 
1071           allows code that uses Trace.Indent() before a Trace.WriteLine() to be 
1072           indented properly.
1073         * TraceImpl.cs: provide a static constructor to explicitly specify the
1074           ordering of initialization, in particular the ordering of
1075           TraceImpl.Listeners and the reading of the .config file (by
1076           accessing DiagnosticsConfiguration.Settings).  This (hopefully)
1077           ensures that the Listeners collection is initialized before the
1078           .config file is read in, as the DiagnosticsConfigurationHandler will
1079           directly modify the listeners collection.
1080           The DiagnosticsConfigurationHandler assumes this so that it can
1081           <add/> and <remove/> trace listeners and set the logfile for the
1082           DefaultTraceListener.
1083
1084
1085 2002-12-18  Jonathan Pryor <jonpryor@vt.edu>
1086         * BooleanSwitch.cs: Complete re-write.  It works now.
1087         * DefaultTraceListener.cs:
1088           - Use `const' strings, so I don't worry about copy/paste errors
1089           - Give `AssertUiEnabled' an actual backing member
1090         * DiagnosticsConfigurationHandler.cs: To avoid race conditions, let the
1091           configuration handler set .config-specified properties on
1092           DefaultTraceListener (AssertUiEnabled, LogFileName) and TraceImpl
1093           (AutoFlush, IndentSize).
1094         * Switch.cs: Near complete re-write.  Actually works, and is (should be)
1095           comformant with .NET behavior.  Changed member names because they
1096           were confusing me.  (Yes, that doesn't say much about my memory.)
1097         * TextWriterTraceListener.cs: Append text to already existing files,
1098           don't overwrite them.
1099         * TraceImpl.cs:
1100           - Added private destructor, to ensure no instances are created.
1101           - Move members declarations to be closer to each other.
1102         * TraceSwitch.cs: Complete re-write.  It works now.
1103
1104 2002-12-17  Jonathan Pryor <jonpryor@vt.edu>
1105         * DiagnosticsConfigurationHandler.cs: Implement so that .config files
1106         support <system.diagnostics> sections.
1107
1108 2002-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1109
1110         * DefaultTraceListener.cs: now OutputDebugStringW is called from an
1111         internal call (update your runtime!). No more warnings in linux.
1112
1113 2002-10-31  Dick Porter  <dick@ximian.com>
1114
1115         * Process.cs: MonoIO methods now have an error parameter
1116
1117 2002-10-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1118
1119         * DefaultTraceListener.cs: changed OutputDebugString to
1120         OutputDebugStringW (no more warnings under windows). Also a few style
1121         fixes.
1122
1123 2002-10-23  Dick Porter  <dick@ximian.com>
1124
1125         * Process.cs: Redirected standard input needs to have AutoFlush set
1126
1127 2002-09-27  Dick Porter  <dick@ximian.com>
1128
1129         * Process.cs: Implemented {get_,set_}{Min,Max}WorkingSet,
1130         ProcessName, GetProcessById, GetProcesses, GetProcessesByName.
1131         Pass the working directory to Start.  Pass the program and args in
1132         one string to be used with the second arg of CreateProcess, so it
1133         will search the path.
1134
1135 2002-09-19  Nick Drochak <ndrochak@gol.com>
1136
1137         * TraceImpl.cs: Remove debug prints
1138
1139 2002-09-19  Nick Drochak <ndrochak@gol.com>
1140
1141         * TraceListenerCollection.cs: Set Indet level and size to default 
1142         values.  The values from TraceImpl might have been changed.
1143
1144 2002-08-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1145
1146         * Process.cs:
1147         * TextWriterTraceListener.cs: IDisposable fixes.
1148
1149 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1150
1151         * Process.cs: class status based fixes.
1152
1153 2002-07-20  Dick Porter  <dick@ximian.com>
1154
1155         * Process.cs: Implement file handle redirection
1156
1157 2002-07-13  Jonathan Pryor <jonpryor@vt.edu>
1158         * CounterCreationData.cs: Implemented
1159         * CounterCreationDataCollection.cs: Implemented
1160         * CounterSample.cs: Stubbed Out
1161         * CounterSampleCalculator.cs: Stubbed Out
1162         * InstanceData.cs: Implemented
1163         * InstanceDataCollection.cs: Implemented
1164         * InstanceDataCollectionCollection.cs: Implemented
1165         * MonitoringDescriptionAttribute.cs: Implemented
1166         * PerformanceCounter.cs: Stubbed Out
1167         * PerformanceCounterCategory.cs: Stubbed Out
1168         * PerformanceCounterInstaller.cs: Stubbed Out
1169         * PerformanceCounterManager.cs: Stubbed Out
1170         * PerformanceCounterPermission.cs: Stubbed Out
1171         * PerformanceCounterPermissionAccess.cs: Implemented
1172         * PerformanceCounterPermissionAttribute.cs: Stubbed Out
1173         * PerformanceCounterPermissionEntry.cs: Stubbed Out
1174         * PerformanceCounterPermissionEntryCollection.cs: Implemented
1175         * PerformanceCounterType.cs: Implemented
1176
1177
1178 2002-06-25  Dick Porter  <dick@ximian.com>
1179
1180         * Process.cs: Process forking and waiting, and some support functions
1181
1182         * ProcessStartInfo.cs: Implemented the bits needed for basic
1183         Process forking
1184
1185         * ProcessModule.cs: Implemented
1186
1187         * ProcessModuleCollection.cs: Mostly implemented
1188
1189         * FileVersionInfo.cs: Implemented
1190
1191 2002-06-16  Jonathan Pryor <jonpryor@vt.edu>
1192         * ICollectData.cs: Implemented
1193         * TraceImpl.cs: Setting IndentLevel, IndentSize should change the
1194                 corresponding properties on all current TraceListeners.
1195                 Also, to answer the FIXME message: Yes, the properties in TraceListener
1196                 need to be [ThreadStatic] as well.
1197         * TraceListenerCollection.cs: When adding a TraceListener, the TraceListener
1198                 should have its properties set to the current TraceImpl property values.
1199         * TraceListener.cs: Make indentSize, lndentLevel [ThreadStatic].
1200
1201 2002-06-09  Jonathan Pryor <jonpryor@vt.edu>
1202         * EntryWrittenEventArgs.cs: Implemented
1203         * EntryWrittenEventHandler.cs: Implemented
1204         * EventLog.cs: Stubbed out
1205         * EventLogEntry.cs: Stubbed out
1206         * EventLogEntryCOllection.cs: Implemented.
1207         * EventLogEntryType.cs: Implemented
1208         * EventLogInstaller.cs: Stubbed out
1209         * EventLogPermission.cs: Stubbed out
1210         * EventLogPermissionAccess.cs: Implemented
1211         * EventLogPermissionAttribute.cs: Stubbed out
1212         * EventLogPermissionEntry.cs: Stubbed out
1213         * EventLogPermissionEntryCollection.cs: Stubbed out
1214         * EventLogTraceListener.cs: Stubbed out
1215
1216 2002-05-29  Jonathan Pryor <jonpryor@vt.edu>
1217   * DefaultTraceListener.cs: Implemented MONO_TRACE support
1218
1219 2002-05-27  Jonathan Pryor <jonpryor@vt.edu>
1220   * Moved public API documentation for the following files to the
1221     /mcs/docs/apidocs/xml/en/System.Diagnostics directory:
1222     - Debug.cs
1223     - DefaultTraceListener.cs
1224     - DiagnosticsConfigurationHandler.cs
1225     - Switch.cs
1226     - TextWriterTraceListener.cs
1227     - Trace.cs
1228     - TraceLevel.cs
1229     - TraceListener.cs
1230     - TraceListenerCollection.cs
1231     - TraceSwitch.cs
1232
1233 2002-04-10  Jonathan Pryor <jonpryor@vt.edu>
1234
1235         * TraceListenerCollection.cs: Corrected indexer property to provide the
1236                 correct return value and implement the IList indexer property correctly.
1237
1238 2002-04-07  Jonathan Pryor <jonpryor@vt.edu>
1239
1240         * TraceListener.cs: Fix stack overflow bug
1241         * DefaultTraceListener.cs: Implement log file support
1242
1243 2002-04-04  Dick Porter  <dick@ximian.com>
1244
1245         * ThreadWaitReason.cs:
1246         * ThreadState.cs:
1247         * ThreadPriorityLevel.cs:
1248         * ProcessWindowStyle.cs:
1249         * ProcessThreadCollection.cs
1250         * ProcessThread.cs:
1251         * ProcessStartInfo.cs:
1252         * ProcessModuleCollection.cs: Stub out more classes needed for Process
1253
1254 2002-03-31  Dick Porter  <dick@ximian.com>
1255
1256         * Process.cs: 
1257         * ProcessPriorityClass.cs: 
1258         * ProcessModule.cs: 
1259         * FileVersionInfo.cs: Stub out classes needed for Process
1260
1261 2002-03-08  Jonathan Pryor <jonpryor@vt.edu>
1262
1263         * Debug.cs: Clean up (lots of code can be shared with Trace.cs, which 
1264                 is why TraceImpl.cs is introduced), "DEBUG" conditional support
1265         * TraceListener.cs: Proper implementation of Dispose pattern;
1266                 implementatino of non-abstract methods in terms of abstract methods
1267         * TraceListenerCollection.cs: check 'object' types before adding
1268         * TextWriterTraceListener.cs: properly implement Dispose pattern;
1269                 handle NeedIndent and WriteIndent
1270         * Trace.cs: new file; provides Trace functionality, "TRACE" conditional
1271                 support
1272         * DefaultTraceListener.cs: new file; the default trace listener
1273
1274 2002-01-17  Miguel de Icaza  <miguel@ximian.com>
1275         * TraceListenerCollection.cs: Remove Warnings.
1276
1277 2002-01-06  Ravi Pratap  <ravi@ximian.com>
1278         * Switch.cs, TraceListenerCollection.cs : Decorate incomplete bits
1279         with the MonoTODO attribute.
1280
1281 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
1282         * Added Debug.cs to the build.
1283
1284 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
1285         * Added preliminary TraceListenerCollection.cs to the build.
1286
1287 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
1288         * Added TraceListener.cs, TextWriterTraceListener.cs, and
1289         DefaultTraceListener.cs to the build and moved them into the
1290         proper assembly.
1291
1292 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
1293         * Added DiagnosticsConfigurationHandler.cs to the build.
1294
1295 2001-09-09  Nick Drochak <ndrochak@gol.com>
1296         * BooleanSwitch.cs: Make this class use it's parent class's features.  Namely, use SwitchSetting
1297         so that we can get OnSwitchSettingChanged() to fire for free.
1298
1299 2001-09-09  Nick Drochak <ndrochak@gol.com>
1300         * ChangeLog: added this file
1301         * Switch.cs: call OnSwitchSettingChanged() when the switch setting is, yes you gessed it, changed.