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