Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

farmerdoug

macrumors 6502a
Original poster
I get a segmentation error so to debug it, I put in a print statements to help me debug. However, I didn't get any output but I did find the error. It was after the print statement. How does that happen?
 
It's likely that the output was buffered and didn't get printed before the error happened. If you do a flush after the print statement then you should see the output before the error.
 
I get a segmentation error so to debug it, I put in a print statements to help me debug. However, I didn't get any output but I did find the error. It was after the print statement. How does that happen?

What IDE do you use? If this is in XCode I have no idea - but if you're using DashCode, check the parameters in the project menu.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.