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