<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamiyan2</author_name>
  <author_url>https://blog.hatena.ne.jp/kamiyan2/</author_url>
  <blog_title>かみやんの技術者ブログ</blog_title>
  <blog_url>https://kamiyan.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>PC側の制御ソフトのAibiUI。去年に作成したときから、SerialPortにデータが来ている状態でアプリを終了するとフリーズすることがあった。デバッガでは、SerialPort.Close()メソッドでブロックしていることは分かっていたが、気になっていたものの直していなかった。 てっきりSerialPortの使い方の問題かと思って、Close()前にイベントハンドラをはずしたり、DiscardInBuffer()等で、シリアルポートのバッファをクリアしたりしてみたがフリーズは直らず。 調べてみたところ http://social.msdn.microsoft.com/Forums/ja-J…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkamiyan.hatenablog.jp%2Fentry%2F20090928&quot; title=&quot;C# SerialPortのClose()でフリーズ - かみやんの技術者ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-09-28 00:00:00</published>
  <title>C# SerialPortのClose()でフリーズ</title>
  <type>rich</type>
  <url>https://kamiyan.hatenablog.jp/entry/20090928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
