Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Fatal Error "attempting to reuse an allocated resource" (http://www.chiefdelphi.com/forums/showthread.php?t=90438)

Cody Trey 29-01-2011 16:12

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

CodeMonkeyMatt 29-01-2011 23:05

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.

Alan Anderson 30-01-2011 12:49

Re: Fatal Error "attempting to reuse an allocated resource"
 
It sounds like you might have a new somewhere it shouldn't be.

Gmzcarlos 06-02-2011 13:42

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?

Gmzcarlos 06-02-2011 14:17

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.


All times are GMT -5. The time now is 13:36.

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