2004-03-23 Ben Maurer <bmaurer@users.sourceforge.net>
[mono.git] / mcs / class / System / System.Diagnostics / ChangeLog
1 2004-03-23 Ben Maurer  <bmaurer@users.sourceforge.net>
2
3         * Switch.cs: Don't throw when there is no switches section.
4
5 2004-03-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
6
7         * Process.cs: support EnableRaisingEvents + Exited event.
8
9 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
10
11         * Process.cs: patch by Gert Driesen that fixes WaitForExit when the
12         timeout is int.MaxValue.
13
14 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
15
16         * Process.cs: added environment variables setting support and also
17         send useShellExecute to the runtime.
18
19         * ProcessStartInfo.cs: support EnvironmentVariables.  MS uses
20         StringDictionary, which turns keys into lowercase. We don't do that.
21
22 2004-02-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
23
24         * Process.cs: ExitCode and ExitTime check that the process is finished.
25
26 2003-12-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
27
28         * Process.cs: if there's an error when starting the process, the 'pid'
29         field contains the GetLastError code. Use that for the Win32Exception.
30
31 2003-12-06  Martin Baulig  <martin@ximian.com>
32
33         * DefaultTraceListener: Don't use `where' in variable names.
34
35 2003-11-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
36
37         * ICollectData.cs: Fixed signature
38
39 2003-11-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
40
41         * ICollectData.cs: Added missing attribute
42
43 2003-07-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
44
45         * SRDescriptionAttribute.cs: Moved to System directory
46
47 2003-07-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
48
49         * EventLog.cs: Implementation handling
50         * EventLogImpl.cs: Added, contains an platform independent empty implementation
51         for EventLog
52
53 2003-07-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
54
55         * AlphabeticalEnumConverter.cs: Added
56         * EventLogEntry.cs: Implemented
57         * EventLogPermissionEntryCollection.cs: Fixed signature and implementation of indexer
58         * EventLogTraceListener.cs: Fixed signature
59         * PerformanceCounter.cs: Added missing attribute
60         * PerformanceCounterType.cs: Added missing attribute
61         * SRDescriptionAttribute.cs: Added and implemented
62
63 2003-07-17  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
64
65         * CounterCreationData.cs:
66         * EventLog.cs:
67         * EventLogEntry.cs:
68         * PerformanceCounter.cs:
69         * Process.cs:
70         * ProcessModule.cs:
71         * ProcessStartInfo.cs:
72         * ProcessThread.cs: Reworked attributes based on the new Consts scheme
73
74 2003-07-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
75
76         * PerformanceCounterCategory.cs: Fixed signatures
77
78 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
79
80         * PerformanceCounter.cs: Implemented or implementation added
81
82 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
83
84         * DiagnosticsConfigurationHandler.cs: Removed a never used variable
85         * EventLog.cs: Small update to prevent a warning
86         * EventLogPermission.cs: Implemented or implementation added
87         * EventLogPermissionAttribute.cs: Implemented or implementation added
88         * EventLogPermissionEntry.cs: Implemented or implementation added
89         * EventLogPermissionEntryCollection.cs: Implemented or implementation added
90         * EventLogTraceListener.cs: Implemented or implementation added
91         * PerformanceCounterManager.cs: Implemented or implementation added
92         * PerformanceCounterInstaller.cs: Made internal
93         * PerformanceCounterCategory.cs: Implemented few members
94         * PerformanceCounterPermission.cs: Implemented or implementation added
95         * PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
96         * PerformanceCounterPermissionEntry.cs: Implemented or implementation added
97         * PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added
98         
99 2003-07-07  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
100
101         * EventLog.cs: Removed unneccesary attribute according to corecompare
102         * EventLogEntry.cs: Removed unneccesary attribute according to corecompare
103         * Process.cs: Removed unneccesary attributes according to corecompare, added attribute
104         * ProcessModule.cs: Removed unneccesary attribute according to corecompare
105         * ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
106         * ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature
107
108 2003-07-05  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
109
110         * InstanceDataCollectionCollection.cs: Corrected wrong signature
111         * EventLog.cs: Missing attributes added, redirected some class members
112         * EventLogEntry.cs: Missing attributes added
113         * EventLogInstaller.cs: Made internal
114         
115 2003-07-02  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
116
117         * CounterCreationData.cs: Added missing attributes
118         * CounterSample.cs: Implemented missing rest, fixed signature
119         * CounterSampleCalculator.cs: Added private constructor, redirected function
120         * Process.cs: Added attributes, added event mechanism
121         * ProcessModule.cs: Added missing attributes
122         * ProcessModuleCollection.cs: Redone using the already inherited-from ArrayList. Simplifies this a LOT
123         * ProcessStartInfo.cs: Added missing attributes, moved internal fields to the begining of the file, restyling
124         * ProcessThread.cs: Added missing attributes, added pseudo constructor
125         * ProcessThreadCollection.cs: Implemented
126         * PerformanceCounterPermission.cs: Fixed typo in class name
127         * PerformanceCounterPermissionAccess.cs: Added attributes, fixed wrong member
128         
129 2003-03-19  Dick Porter  <dick@ximian.com>
130
131         * Process.cs: Implement HasExited, fixes bug 39267
132
133 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
134
135         * Process.cs: throw an exception when the executable cannot be found.
136
137 2002-12-20  Jonathan Pryor <jonpryor@vt.edu>
138         * DiagnosticsConfigurationHandler.cs: 
139           - Don't assume that optional attributes are always present
140           - <assert/> can't have any child nodes
141           - Change in semantics: if the attribute isn't present,
142             GetAttribute() returns null, not "".  This allows us to
143             differentiate between an attribute not being present and an
144             attribute with an empty value.
145           - Translate exceptions if a TraceListener type is invalid
146
147 2002-12-19  Jonathan Pryor <jonpryor@vt.edu>
148         * TraceListenerCollection.cs: IndentLevel and IndentSize shouldn't be 
149           hardcoded; they should be set to whatever TraceImpl is using (which
150           in turn may have been set by the .config file, so we should get the
151           user-specified values in added listeners).
152         * TraceListener.cs: Make sure that indents are initially written.  This 
153           allows code that uses Trace.Indent() before a Trace.WriteLine() to be 
154           indented properly.
155         * TraceImpl.cs: provide a static constructor to explicitly specify the
156           ordering of initialization, in particular the ordering of
157           TraceImpl.Listeners and the reading of the .config file (by
158           accessing DiagnosticsConfiguration.Settings).  This (hopefully)
159           ensures that the Listeners collection is initialized before the
160           .config file is read in, as the DiagnosticsConfigurationHandler will
161           directly modify the listeners collection.
162           The DiagnosticsConfigurationHandler assumes this so that it can
163           <add/> and <remove/> trace listeners and set the logfile for the
164           DefaultTraceListener.
165
166
167 2002-12-18  Jonathan Pryor <jonpryor@vt.edu>
168         * BooleanSwitch.cs: Complete re-write.  It works now.
169         * DefaultTraceListener.cs:
170           - Use `const' strings, so I don't worry about copy/paste errors
171           - Give `AssertUiEnabled' an actual backing member
172         * DiagnosticsConfigurationHandler.cs: To avoid race conditions, let the
173           configuration handler set .config-specified properties on
174           DefaultTraceListener (AssertUiEnabled, LogFileName) and TraceImpl
175           (AutoFlush, IndentSize).
176         * Switch.cs: Near complete re-write.  Actually works, and is (should be)
177           comformant with .NET behavior.  Changed member names because they
178           were confusing me.  (Yes, that doesn't say much about my memory.)
179         * TextWriterTraceListener.cs: Append text to already existing files,
180           don't overwrite them.
181         * TraceImpl.cs:
182           - Added private destructor, to ensure no instances are created.
183           - Move members declarations to be closer to each other.
184         * TraceSwitch.cs: Complete re-write.  It works now.
185
186 2002-12-17  Jonathan Pryor <jonpryor@vt.edu>
187         * DiagnosticsConfigurationHandler.cs: Implement so that .config files
188         support <system.diagnostics> sections.
189
190 2002-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
191
192         * DefaultTraceListener.cs: now OutputDebugStringW is called from an
193         internal call (update your runtime!). No more warnings in linux.
194
195 2002-10-31  Dick Porter  <dick@ximian.com>
196
197         * Process.cs: MonoIO methods now have an error parameter
198
199 2002-10-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
200
201         * DefaultTraceListener.cs: changed OutputDebugString to
202         OutputDebugStringW (no more warnings under windows). Also a few style
203         fixes.
204
205 2002-10-23  Dick Porter  <dick@ximian.com>
206
207         * Process.cs: Redirected standard input needs to have AutoFlush set
208
209 2002-09-27  Dick Porter  <dick@ximian.com>
210
211         * Process.cs: Implemented {get_,set_}{Min,Max}WorkingSet,
212         ProcessName, GetProcessById, GetProcesses, GetProcessesByName.
213         Pass the working directory to Start.  Pass the program and args in
214         one string to be used with the second arg of CreateProcess, so it
215         will search the path.
216
217 2002-09-19  Nick Drochak <ndrochak@gol.com>
218
219         * TraceImpl.cs: Remove debug prints
220
221 2002-09-19  Nick Drochak <ndrochak@gol.com>
222
223         * TraceListenerCollection.cs: Set Indet level and size to default 
224         values.  The values from TraceImpl might have been changed.
225
226 2002-08-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
227
228         * Process.cs:
229         * TextWriterTraceListener.cs: IDisposable fixes.
230
231 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
232
233         * Process.cs: class status based fixes.
234
235 2002-07-20  Dick Porter  <dick@ximian.com>
236
237         * Process.cs: Implement file handle redirection
238
239 2002-07-13  Jonathan Pryor <jonpryor@vt.edu>
240         * CounterCreationData.cs: Implemented
241         * CounterCreationDataCollection.cs: Implemented
242         * CounterSample.cs: Stubbed Out
243         * CounterSampleCalculator.cs: Stubbed Out
244         * InstanceData.cs: Implemented
245         * InstanceDataCollection.cs: Implemented
246         * InstanceDataCollectionCollection.cs: Implemented
247         * MonitoringDescriptionAttribute.cs: Implemented
248         * PerformanceCounter.cs: Stubbed Out
249         * PerformanceCounterCategory.cs: Stubbed Out
250         * PerformanceCounterInstaller.cs: Stubbed Out
251         * PerformanceCounterManager.cs: Stubbed Out
252         * PerformanceCounterPermission.cs: Stubbed Out
253         * PerformanceCounterPermissionAccess.cs: Implemented
254         * PerformanceCounterPermissionAttribute.cs: Stubbed Out
255         * PerformanceCounterPermissionEntry.cs: Stubbed Out
256         * PerformanceCounterPermissionEntryCollection.cs: Implemented
257         * PerformanceCounterType.cs: Implemented
258
259
260 2002-06-25  Dick Porter  <dick@ximian.com>
261
262         * Process.cs: Process forking and waiting, and some support functions
263
264         * ProcessStartInfo.cs: Implemented the bits needed for basic
265         Process forking
266
267         * ProcessModule.cs: Implemented
268
269         * ProcessModuleCollection.cs: Mostly implemented
270
271         * FileVersionInfo.cs: Implemented
272
273 2002-06-16  Jonathan Pryor <jonpryor@vt.edu>
274         * ICollectData.cs: Implemented
275         * TraceImpl.cs: Setting IndentLevel, IndentSize should change the
276                 corresponding properties on all current TraceListeners.
277                 Also, to answer the FIXME message: Yes, the properties in TraceListener
278                 need to be [ThreadStatic] as well.
279         * TraceListenerCollection.cs: When adding a TraceListener, the TraceListener
280                 should have its properties set to the current TraceImpl property values.
281         * TraceListener.cs: Make indentSize, lndentLevel [ThreadStatic].
282
283 2002-06-09  Jonathan Pryor <jonpryor@vt.edu>
284         * EntryWrittenEventArgs.cs: Implemented
285         * EntryWrittenEventHandler.cs: Implemented
286         * EventLog.cs: Stubbed out
287         * EventLogEntry.cs: Stubbed out
288         * EventLogEntryCOllection.cs: Implemented.
289         * EventLogEntryType.cs: Implemented
290         * EventLogInstaller.cs: Stubbed out
291         * EventLogPermission.cs: Stubbed out
292         * EventLogPermissionAccess.cs: Implemented
293         * EventLogPermissionAttribute.cs: Stubbed out
294         * EventLogPermissionEntry.cs: Stubbed out
295         * EventLogPermissionEntryCollection.cs: Stubbed out
296         * EventLogTraceListener.cs: Stubbed out
297
298 2002-05-29  Jonathan Pryor <jonpryor@vt.edu>
299   * DefaultTraceListener.cs: Implemented MONO_TRACE support
300
301 2002-05-27  Jonathan Pryor <jonpryor@vt.edu>
302   * Moved public API documentation for the following files to the
303     /mcs/docs/apidocs/xml/en/System.Diagnostics directory:
304     - Debug.cs
305     - DefaultTraceListener.cs
306     - DiagnosticsConfigurationHandler.cs
307     - Switch.cs
308     - TextWriterTraceListener.cs
309     - Trace.cs
310     - TraceLevel.cs
311     - TraceListener.cs
312     - TraceListenerCollection.cs
313     - TraceSwitch.cs
314
315 2002-04-10  Jonathan Pryor <jonpryor@vt.edu>
316
317         * TraceListenerCollection.cs: Corrected indexer property to provide the
318                 correct return value and implement the IList indexer property correctly.
319
320 2002-04-07  Jonathan Pryor <jonpryor@vt.edu>
321
322         * TraceListener.cs: Fix stack overflow bug
323         * DefaultTraceListener.cs: Implement log file support
324
325 2002-04-04  Dick Porter  <dick@ximian.com>
326
327         * ThreadWaitReason.cs:
328         * ThreadState.cs:
329         * ThreadPriorityLevel.cs:
330         * ProcessWindowStyle.cs:
331         * ProcessThreadCollection.cs
332         * ProcessThread.cs:
333         * ProcessStartInfo.cs:
334         * ProcessModuleCollection.cs: Stub out more classes needed for Process
335
336 2002-03-31  Dick Porter  <dick@ximian.com>
337
338         * Process.cs: 
339         * ProcessPriorityClass.cs: 
340         * ProcessModule.cs: 
341         * FileVersionInfo.cs: Stub out classes needed for Process
342
343 2002-03-08  Jonathan Pryor <jonpryor@vt.edu>
344
345         * Debug.cs: Clean up (lots of code can be shared with Trace.cs, which 
346                 is why TraceImpl.cs is introduced), "DEBUG" conditional support
347         * TraceListener.cs: Proper implementation of Dispose pattern;
348                 implementatino of non-abstract methods in terms of abstract methods
349         * TraceListenerCollection.cs: check 'object' types before adding
350         * TextWriterTraceListener.cs: properly implement Dispose pattern;
351                 handle NeedIndent and WriteIndent
352         * Trace.cs: new file; provides Trace functionality, "TRACE" conditional
353                 support
354         * DefaultTraceListener.cs: new file; the default trace listener
355
356 2002-01-17  Miguel de Icaza  <miguel@ximian.com>
357         * TraceListenerCollection.cs: Remove Warnings.
358
359 2002-01-06  Ravi Pratap  <ravi@ximian.com>
360         * Switch.cs, TraceListenerCollection.cs : Decorate incomplete bits
361         with the MonoTODO attribute.
362
363 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
364         * Added Debug.cs to the build.
365
366 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
367         * Added preliminary TraceListenerCollection.cs to the build.
368
369 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
370         * Added TraceListener.cs, TextWriterTraceListener.cs, and
371         DefaultTraceListener.cs to the build and moved them into the
372         proper assembly.
373
374 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
375         * Added DiagnosticsConfigurationHandler.cs to the build.
376
377 2001-09-09  Nick Drochak <ndrochak@gol.com>
378         * BooleanSwitch.cs: Make this class use it's parent class's features.  Namely, use SwitchSetting
379         so that we can get OnSwitchSettingChanged() to fire for free.
380
381 2001-09-09  Nick Drochak <ndrochak@gol.com>
382         * ChangeLog: added this file
383         * Switch.cs: call OnSwitchSettingChanged() when the switch setting is, yes you gessed it, changed.