Bug 40471 - Cannot send date after recycling a COM port
Summary: Cannot send date after recycling a COM port
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2016-04-17 17:58 UTC by Cody Beyer (MSFT)
Modified: 2016-04-18 15:39 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 40471 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Cody Beyer (MSFT) 2016-04-17 17:58:08 UTC
# Description

There appears to be an issue where a COM port will be unable to send data properly after the connecting is closed and instantiated again.

# Steps to Reproduce

1. Instantiate ComPort

2. Open instantiated ComPort

3. Close ComPort

4. Dispose ComPort

5. Instantiate Comport

6. Open instantiated ComPort

# Expected Results

The comport initiated in step 6 should be able to send data

# Actual Results

The comport in step is sends empty data packets
Comment 1 Chris Hamons 2016-04-18 15:31:38 UTC
This is very likely an issue with the mono class library with ComPort. 

I have no machine with a com port, so I can not reproduce.

Ideally, we'd love sample code showing the exact code that hit this.
Comment 2 Cody Beyer (MSFT) 2016-04-18 15:39:33 UTC
I should note, that the data sends, however the data packet is of 0 KB