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