mcs/class/System/System.Diagnostics/Process.cs (Start_noshell):
If the process execution fails, then add the error message for
the native error code in the Win32Exception thrown.
Fixes#605033.
'cause stack overflow is back, mkay?
at System.Diagnostics.TraceImpl.InitOnce () <0x0005b>
at System.Diagnostics.TraceImpl.get_IndentLevel () <0x0000b>
at System.Diagnostics.TraceListenerCollection.InitializeListener (System.Diagnostics.TraceListener) <0x0000f>
at System.Diagnostics.TraceListenerCollection.Add (System.Diagnostics.TraceListener) <0x00017>
at System.Diagnostics.TraceListenerCollection..ctor (bool) <0x0007f>
at System.Diagnostics.TraceListenerCollection..ctor () <0x00013>
at System.Diagnostics.DiagnosticsConfigurationHandler.GetSharedListeners (System.Collections.IDictionary) <0x00083>
at System.Diagnostics.DiagnosticsConfigurationHandler.Create (object,object,System.Xml.XmlNode) <0x003cf>
at System.Configuration.ConfigurationSection.GetRuntimeObject () <0x0033d>
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (string) <0x00041>
at System.Configuration.ConfigurationManager.GetSection (string) <0x00030>
at System.Configuration.ConfigurationSettings.GetConfig (string) <0x0000f>
at System.Diagnostics.DiagnosticsConfiguration.get_Settings () <0x00043>
at System.Diagnostics.TraceImpl.InitOnce () <0x0005b>
Thus, when we're getting the <sharedListeners/> element, we shouldn't call
the TraceListenerCollection default constructor, as that will attempt to add
the DefaultTraceListener (which isn't needed anyway, as the
DefaultTraceListener is explicitly added by TraceImplSettings).
This error was found by Gonzalo when he was looking at another problem
when thread IDs overflowed ints.
Currently we use gpointers in the io-layer for the threadid, but we were
only exposing the value as an int32. The good news is that the code is
not really used right now, but could cause problems in the future as we
extend Process.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-03-11 Sebastien Pouliot <[email protected]>
* Debug_2_1.cs: Change type to static to match SL4
In .:
2010-03-11 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.dll.sources: Add existing files that are
part of SL4
In System.Collections.Generic:
2010-03-11 Sebastien Pouliot <[email protected]>
* ISet.cs: Add NET_2_1 since this is part of SL4
svn path=/trunk/mcs/; revision=153477
* ProcessStartInfo.cs: HaveEnvVars is enabled by just using the
EnvironmentVariables property. Bug #520650 fixed.
svn path=/trunk/mcs/; revision=137730
TraceSourceInfo(string, SourceLevels, TraceImplSettings) constructor.
* System.Diagnostics/TraceSourceInfo.cs: Add a new constructor,
TraceSourceInfo(string, SourceLevels, TraceImplSettings), which adds
the DefaultTraceListener w/o depending upon (the possibly still
initializing) TraceImpl members. Fixes#502944.
* Test/test-config-file: Add a /configuration/system.diagnostics/source
section to elicit the buggy behavior found in #502944.
svn path=/trunk/mcs/; revision=133981
while reading the .config file, instead cache the values and refer
to the cached values during initialization. This prevents recursive
initialization calls (Trace.OnInit() ... Trace.Listeners.Add() ...
Trace.OnInit() ...), and associated duplicate parsing of .config file
sections. Fixes bnc#499442.
* TraceImpl.cs: Cope with DiagnosticsConfigurationHandler changes.
* TraceListenerCollection.cs: Add internal
Add(TraceListener,TraceImplSettings) method for adding
TraceListeners during DiagnosticsConfigurationHandler initialization
(which can't access TraceImpl, as we may still be reading the
.config file to determine the TraceImpl values).
svn path=/trunk/mcs/; revision=133291
* ConsoleTraceListener.cs: add an internal constructor that takes a
string argument. Used when 'initializeData' is set.
* DiagnosticsConfigurationHandler.cs: try internal constructors when
the assembly is System.
Fixes bug #498853.
svn path=/trunk/mcs/; revision=132868
* Process.cs: Do not crash if GetProcesses_internal returns null
This happens on operating systems where we have not implemented
svn path=/trunk/mcs/; revision=132110
* Stopwatch.cs: Reorder the calculations in Elapsed and ElapsedMilliseconds
to avoid overflow. Fixes#468570. Patch by Yoni Shalom <[email protected]>.
svn path=/trunk/mcs/; revision=124260
* Process.cs: Avoid closing the duplicated process handle in
ProcessWaitHandle, it is done automatically by the WaitHandle.Dispose ().
Fixes#464628.
svn path=/trunk/mcs/; revision=123738
2008-12-25 Miguel de Icaza <[email protected]>
* ProcessTest.cs: Created a test case from bug 459450.
2008-12-25 Leszek Ciesielski <[email protected]>
* System.Diagnostics/Process.cs: Raise the
Process.OutputDataReceived and Process.ErrorDataReceived with null
arguments at the end. This is the documented behavior:
http://msdn.microsoft.com/en-us/library/system.diagnostics.datareceivedeventargs.data.aspx
And CruiseControl.NET depended on this. Bug #459450.
* Microsoft.CSharp/CSharpCodeCompiler.cs: Fix the code, as it
depened on the previous broken behavior.
svn path=/trunk/mcs/; revision=122125
* System/Test/System.Diagnostics/CounterCreationDataTest.cs: Test to verify CounterHelp defaults to String.Empty.
* System/System.Diagnostics/CounterCreationData.cs: Default CounterHelp to String.Empty.
svn path=/trunk/mcs/; revision=121172
* process.h : Adding method declaration for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* process.c : Adding implementation for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* wait.h : Adding method declaration for WaitForInputIdle.
* wait.c : Adding implementation for WaitForInputIdle.
* Process.cs : Adding an implementation for WaitForInputIdle
to call the an internal call. The internal call is only
implemented properly on Windows.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=118724
* CounterSampleCalculator.cs: added more calculated types.
* PerformanceCounter.cs: NextValue() works as well as RawValue.
svn path=/trunk/mcs/; revision=113435
* Socket.cs : Adding a comment to provide locations where
changes to MonoSocketAsyncResult need to be synced.
* Process.cs : Update the fields of ProcessAsyncReader to
match MonoSocketAsyncResult metadata/socket-io.h
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=112681
- Remove the "lock-free" code, which (come to think of it) would be
faulty in a multithreaded environment anyway because the "other"
threads won't wait (block) until initialization is complete...
- Add InitOnce() calls to all public properties, so that
`Debug.AutoFlush=true' will cause InitOnce() to be loaded, lest
a `Debug.AutoFlush=true; Debug.Listeners.Add(...)` sequence cause
.AutoFlush=true to be ignored as the InitOnce implied by .Add()
will "overwrite" the .AutoFlush.
- Split up TraceListenerCollection creation from DefaultTraceListener
addition, as TraceListenerCollection.Add() calls back into
TraceImpl, so if these aren't separate we get an infinite loop
and never actually initialize anything.
- Fixes#424370.
* TraceListenerCollection.cs: Add a TraceListenerCollection(bool)
constructor, which provides a way to NOT add the
DefaultTraceListener (needed by TraceImpl; see above).
svn path=/trunk/mcs/; revision=112596
* DelimitedTraceListener.cs: Changed accessibility of
GetSupportedAttributes to protected internal.
* DiagnosticsConfigurationHandler.cs: Use GetSupportedAttributes to
allow custom attributes on tracelisteners. Fixes bug #413203.
* TraceListener.cs: Changed accessibility of GetSupportedAttributes
to protected internal. Removed MonoTODO on GetSupportedAttributes and
Attributes. Fixed line endings.
svn path=/trunk/mcs/; revision=109500
* Process.cs: When passing handle references around, it needs to
be duplicated and freed so the OS doesn't close it. Makes the
testcase in 410743 work again now the underlying bug has been
fixed.
svn path=/trunk/mcs/; revision=109048