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