Those three don't make sense. You're declaring variables to hold
addresses and then assign arbitrary numbers to those addresses. So,
you're asking getLineStart:... to change memory addresses 47, 48 and
49, which are very likely somewhere deep in system memory and will
cause your app to get killed before it can screw up the system. You
have to declare some actual unsigned variables and point to them
using the address-of operator.
If this wasn't just a typo caused by lack of caffeine, you may want
to read some articles on memory management. It just so happens that I
wrote one:
And there's more info on memory in my "Masters of the Void" C course
(still in progress, but what's there is at http://www.zathras.de/
angelweb/masters-of-the-void.htm) in particular in chapter 5 (http://
www.zathras.de/angelweb/masters-of-the-void-book5.htm).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden