Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Jarrid

Member Since 05 Jul 2011
Offline Last Active Jul 22 2013 02:18 AM
-----

Posts I've Made

In Topic: Unable to deploy without disconnect\reconnect USB cable

18 June 2012 - 01:14 AM

I know the last post was very long ago, but I had the same problem and think I have a solution. I was coding everything in separate threads and allowing Main() to end, with the remaining threads actually doing the work. With a lot of trial and error, I finally decided to let Main() live forever, even though the thread had no work left to be done. Once I placed Thread.Sleep(Timeout.Infinite); at the end of Main(), I have never had to reset my USB connection. Hope this is helpful.

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.