Hanging thread on exit
Navigates to RoboticsConnection.com Home RoboticsConnection.com HomePage
RoboticsConnection User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Hanging thread on exit Expand / Collapse
Author
Message
Posted Saturday, December 13, 2008 6:39 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Sunday, January 04, 2009 1:42 PM
Posts: 4, Visits: 11
There is a hanging thread on exit of the SensorQueryWinFormExample. To fix, you should add a handler to the FormClosing event and properly stop communication with the serializer. New code highlighted below:


public Form1()
{
InitializeComponent();
InitializeSerializer();

this.FormClosing += new FormClosingEventHandler(Form1_FormClosing);
}

private void Form1_FormClosing(Object sender, FormClosingEventArgs e)
{
serializer.StopCommunication();
}

Post #765
Posted Sunday, December 14, 2008 4:30 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Monday, October 31, 2011 9:18 PM
Posts: 640, Visits: 819
Hey, thanks Ben!

I'll update it now...  Also, you mentioned the last time we talked about having a broken link for the encoders somewhere.  Do you remember exactly where it was, so that I can fix it?

Let's have dinner again sometime soon!

Best Regards, and have a Merry Christmas!

Jason Summerour
President,
Summerour Robotics Corporation
www.roboticsconnection.com

Post #769
Posted Sunday, December 14, 2008 6:55 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Sunday, January 04, 2009 1:42 PM
Posts: 4, Visits: 11
Hi Jason,

I found 3 broken links on the sensor pages. They are all on the line under the image of the sensor where it says: "Technical Information for * can be found here". (The 'here' link is the broken link). The pages that I found to be broken are:

* RoboticsConnection.Serializer.Sensors.MaxSonarEZ1
* RoboticsConnection.Serializer.Sensors.Ping
* RoboticsConnection.Serializer.Sensors.WheelEncoder

My other comment about the documentation was regarding the ServoMotorId enum. I think it should be MUCH better documented how these translate into GpioPinIds that can be read on the device. This vital information should be put in as many places as possible. Or better yet, eliminate this enum entirely and just use GpioPinId in the ServoMotorController instead. And throw an error if the pin is out of range.
-Ben
Post #779
Posted Thursday, February 17, 2011 10:50 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Friday, February 18, 2011 10:25 AM
Posts: 9, Visits: 14
was this ever resolved?

Carlotta Berry
Mobile Robotics Prof
RHIT
Post #2074
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: jsummerour, ringo

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 12:20pm

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.109. 12 queries. Compression Disabled.