www.homeseer.com    
 

Go Back   HomeSeer Message Board > Developer Support > Programming & Plug-in Development > Plug-In Development

Plug-In Development Discussions related to development new HomeSeer plug-ins.

Reply
 
Thread Tools Display Modes
  #1  
Old September 18th, 2009, 12:00 PM
rjh's Avatar
rjh rjh is offline
HomeSeer Technologies
 
Join Date: Jan 2001
Location: Bedford, NH, USA
Posts: 8,655
Bug in .NET ports class

There is a known bug in the .NET COM port class, see this thread for details:

http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/8a1825d2-c84b-4620-91e7-3934a4d47330

If you are using the .NET ports class, there is a fix you can add to your code. Right after you open the COM port, add this line:

GC.SuppressFinalize(serialPort.BaseStream)

Without the fix, your plug-in may throw an error and terminate HomeSeer. This can happen if the COM port you are using disappears, maybe its a virtual com port and someone unplugged the USB connection.
__________________


website | products | support | youtube
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:24 PM.


Copyright HomeSeer Technologies, LLC