View Single Post
  #4   Spotlight this post!  
Unread 08-03-2011, 01:00
Travis Hoffman's Avatar Unsung FIRST Hero
Travis Hoffman Travis Hoffman is offline
O-H
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Engineer
 
Join Date: Sep 2001
Rookie Year: 2001
Location: Warren, Ohio USA
Posts: 4,047
Travis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond repute
Re: Help Requested - "Fatal Task-Level Kernel Exception"

Thanks to both of you who've replied.

Quote:
Originally Posted by byteit101 View Post
You say labview 3.2, but the screenshot shows you are using C++, no need to update labview
I update everything!

Quote:
anhow, the data access exception (which leads to the fatal error) is caused by a pointer error, which are nasty, often hard to find errors due to memory alotment. I try to avoid pointers where they are not needed, there are none in our 2011 code. Try replacing all the pointers with stack variables or references.
From
Code:
type *name = new type()
name->member
to
Code:
type name = type()
name.member
I *might* have found the problem in my robot class constructor, per Radical Pi's suggestion. The code in question did use the "->" to call members of a custom PID class though.

I use one of the 2009 control system beta tester teams' code projects as the basis for my code. They use pointers all over the place, and I've not had any issue with the code in this manner until the other day.

I'll keep checking tomorrow to see if the problem returns.
__________________

Travis Hoffman, Enginerd, FRC Team 48 Delphi E.L.I.T.E.
Encouraging Learning in Technology and Engineering - www.delphielite.com
NEOFRA - Northeast Ohio FIRST Robotics Alliance - www.neofra.com
NEOFRA / Delphi E.L.I.T.E. FLL Regional Partner
Reply With Quote