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