Speed

Discussion in 'Mac Programming' started by farmerdoug, Dec 5, 2012.

  1. macrumors 6502a

    Joined:
    Sep 16, 2008
    #1
    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?
     
  2. macrumors newbie

    Joined:
    Apr 8, 2009
    #2
    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.
     
  3. macrumors 6502a

    spyguy10709

    Joined:
    Apr 5, 2010
    Location:
    One Infinite Loop, Cupertino CA
    #3
    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.
     
  4. thread starter macrumors 6502a

    Joined:
    Sep 16, 2008
    #4
    Thanks
     

Share This Page