Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 5, 2012, 09:46 AM   #1
farmerdoug
macrumors 6502a
 
Join Date: Sep 2008
Speed

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?
farmerdoug is offline   0 Reply With Quote
Old Dec 5, 2012, 10:05 AM   #2
RiskyMr
macrumors newbie
 
Join Date: Apr 2009
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.
RiskyMr is offline   0 Reply With Quote
Old Dec 5, 2012, 10:06 AM   #3
spyguy10709
macrumors 6502a
 
Join Date: Apr 2010
Location: One Infinite Loop, Cupertino CA
Quote:
Originally Posted by farmerdoug View Post
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.
spyguy10709 is offline   0 Reply With Quote
Old Dec 5, 2012, 10:34 AM   #4
farmerdoug
Thread Starter
macrumors 6502a
 
Join Date: Sep 2008
Thanks
farmerdoug is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Benchmark only read speed without write speed? caspersoong Mac Applications and Mac App Store 1 Oct 24, 2013 07:47 AM
Resolved: Speed Up iPhone 4S Cellular speed 4GLTE lover iPhone 27 Jun 2, 2013 08:07 AM
Crucial M4 512GB SSD Write speed half of read speed? Kmad86 iMac 2 Jan 3, 2013 01:03 AM
Should i get a single-speed or multi-speed bike? GanChan Community Discussion 6 Sep 19, 2012 11:31 PM
How to test processor speed and/or hard drive speed? macuser1232 MacBook Pro 9 Aug 28, 2012 05:52 PM

Forum Jump

All times are GMT -5. The time now is 07:08 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC