[Mono-bugs] [Bug 459450] New: Process. OutputDataReceived and ErrorDataReceived are never raised with DataReceivedEventArgs .Data set to null
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Dec 16 10:26:52 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=459450
Summary: Process.OutputDataReceived and ErrorDataReceived are
never raised with DataReceivedEventArgs.Data set to null
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: skolima at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=260352)
--> (https://bugzilla.novell.com/attachment.cgi?id=260352)
test case
According to
http://msdn.microsoft.com/en-us/library/system.diagnostics.datareceivedeventargs.data.aspx
, after the redirected output (Process.OutputDataReceived) / error
(Process.ErrorDataReceived) have been closed, an event should be raised with
DataReceivedEventArgs.Data set to null. CruiseControl.Net 1.4.2 relies on this
to detect that is has read all available output data. Mono does not raise this
"additional" event (it correctly sends populated DataReceivedEventArgs while
the process is working). This bug is present on Windows (Mono 2.0.1) and Linux
(Mono 2.0.1 and SVN r121581 ).
A test case program is attached.
Expected output (run on MS.Net):
started, waiting for keydown
out: Mono JIT compiler version 2.0.1 (tarball)
out: Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
out: TLS: normal
out: GC: Included Boehm (with typed GC)
out: SIGSEGV: normal
out: Notification: Thread + polling
out: Architecture: x86
out: Disabled: none
out: ===received null
error: ===received null
process exited
Actual output (run on Mono):
process exited
started, waiting for keydown
out: Mono JIT compiler version 2.0.1 (tarball)
out: Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
out: TLS: normal
out: GC: Included Boehm (with typed GC)
out: SIGSEGV: normal
out: Notification: Thread + polling
out: Architecture: x86
out: Disabled: none
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list