Go to Post Common sense can take you a long way!!! - ClintDog [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2011, 16:12
Cody Trey's Avatar
Cody Trey Cody Trey is offline
Programing = hard + fun
FRC #2582 (Panther Bots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: US
Posts: 31
Cody Trey is an unknown quantity at this point
Send a message via Yahoo to Cody Trey
Exclamation Fatal Error "attempting to reuse an allocated resource"

when we run our code we get this diagnostics message:

"Fatal error "Attempting to to reuse an allocated resource" in Allocate()
in C:/windriver/workspace/WPILib/Resource.cpp at line 76
No Change to Network Configuration:<noNICConfig><noNICConfig>
I/O unit not detected or not installed correctly.

does anyone know why this is happening or how to fix it. or even what it really means. it happens most often when we go from forward to revers quickly
__________________
Love, Peace, and Robot Grease
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2011, 23:05
CodeMonkeyMatt CodeMonkeyMatt is offline
Registered User
FRC #2605
 
Join Date: Jan 2011
Rookie Year: 2008
Location: WA
Posts: 46
CodeMonkeyMatt is on a distinguished road
Re: Fatal Error "attempting to reuse an allocated resource"

How and where are you initializing your drive motors? This happened to us a few times when we accidentally put the initializations in a spot where they tried to create the same motor twice, or a different motor on the same port.

I'm sure someone else will say it, so I might as well give you advanced warning: It helps us help you if you post the code that isn't working.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2011, 12:49
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Fatal Error "attempting to reuse an allocated resource"

It sounds like you might have a new somewhere it shouldn't be.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2011, 13:42
Gmzcarlos Gmzcarlos is offline
Registered User
FRC #3583
 
Join Date: Feb 2011
Location: Texas
Posts: 8
Gmzcarlos is an unknown quantity at this point
Re: Fatal Error "attempting to reuse an allocated resource"

We are getting the same error. I just updated the cRio to v27. I am using the SimpleRobot program example as it is.

Could it be the wiring?
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2011, 14:17
Gmzcarlos Gmzcarlos is offline
Registered User
FRC #3583
 
Join Date: Feb 2011
Location: Texas
Posts: 8
Gmzcarlos is an unknown quantity at this point
Re: Fatal Error "attempting to reuse an allocated resource"

OK, Its working now. We did not change anything. We just restarted the cRio a couple of times and did a clean build of the program and voila.

Not sure what the real problem was, but now is time to move to the next challenge.

BTW, the Joystick x and y axis are reversed, I guess that will be our next step to fix it.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 15:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi