![]() |
Pointers Issues
Hey everyone,
So, we are having issues with pointers. I just wanted to know if anyone else is getting the same errors. They are kernel task exceptions. When I get rid of the pointers and initialize the classes another way, it all works. If anyone has a solution, please tell me. Otherwise, I just want to know if everyone else is having the same issue or it's just me.... Code:
#include "WPILib.h"It keeps giving me that the Drive *dr; has not been initialized correctly, where I believe I have. Anyone know any ways I can debug this? Thanks, -Eagle Engineering 1138 |
Re: Pointers Issues
If you suspect you have a problem with your code, you need to post it so other people can help you.
|
Re: Pointers Issues
Quote:
|
Re: Pointers Issues
Quote:
|
Re: Pointers Issues
Quote:
Drive.h Code:
Code:
MyRobot is in the main post. |
Re: Pointers Issues
Quote:
|
Re: Pointers Issues
I seem to remember something about needing to initialize things in the same order they were defined. This is just a guess, but have you tried moving the
Code:
myRobot = new RobotDrive(leftmotor, rightmotor); |
| All times are GMT -5. The time now is 17:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi