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