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