An example program from this book is causing Xcode to go haywire, spewing thousands of errors over the icon in the dock, before consuming all resources on my system.
First of all, I'm blown away that a compiler error can nearly take my system out. I was able to get a terminal up and kill -9 everything, since finder totally stopped responding, and the button to "stop the build" didn't do anything. Look guys, it's really not that hard to spawn off a process to kill gcc. I managed to do it, why can't Xcode?
Do developers for the iPad find this is normal? Save everything, and when you compile, hope for the best, because if you're wrong, you gotta hard kill everything or your system locks up? What kind of crap is this? I'm running Xcode 3.26 / iPhone SDK 4.3. I read that Xcode 4 is out, but it has issues of it's own (according to the Arstechnica article).
I have been able to recreate the issue with a three line test program. I'd love some assistance to understand what is going on here.
Anyway, here's the program. Create a new "view based application" Open up the ViewController header. Add these three lines. When you're done, your header should look like this:
If I compile this, Xcode blows up, all ram is eaten, and my system grinds to a halt. I keep a terminal open that lets me nuke everything to regain control. Insane. I wish I could just do all of this from the command line, where I feel I have more control. I can't even find a log file to figure out what the heck is going on here. I'd like to think you can do a #define and use it when defining an array of objects.
Help?
First of all, I'm blown away that a compiler error can nearly take my system out. I was able to get a terminal up and kill -9 everything, since finder totally stopped responding, and the button to "stop the build" didn't do anything. Look guys, it's really not that hard to spawn off a process to kill gcc. I managed to do it, why can't Xcode?
Do developers for the iPad find this is normal? Save everything, and when you compile, hope for the best, because if you're wrong, you gotta hard kill everything or your system locks up? What kind of crap is this? I'm running Xcode 3.26 / iPhone SDK 4.3. I read that Xcode 4 is out, but it has issues of it's own (according to the Arstechnica article).
I have been able to recreate the issue with a three line test program. I'd love some assistance to understand what is going on here.
Anyway, here's the program. Create a new "view based application" Open up the ViewController header. Add these three lines. When you're done, your header should look like this:
Code:
#import <UIKit/UIKit.h>
@interface defineTestViewController : UIViewController {
#define BRICKS_WIDTH 5;
#define BRICKS_HEIGHT 4;
UIImageView *bricks[BRICKS_WIDTH][BRICKS_HEIGHT];
}
@end
If I compile this, Xcode blows up, all ram is eaten, and my system grinds to a halt. I keep a terminal open that lets me nuke everything to regain control. Insane. I wish I could just do all of this from the command line, where I feel I have more control. I can't even find a log file to figure out what the heck is going on here. I'd like to think you can do a #define and use it when defining an array of objects.
Help?