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 Jul 9, 2007, 11:06 AM   #1
Spanky Deluxe
macrumors 601
 
Spanky Deluxe's Avatar
 
Join Date: Mar 2005
Location: London, UK
How do I enable the "Enable Guard Malloc" option?

Hi!

I've got some code that was written by someone else for Linux. I need to expand on the code a bit as part of a project, however, I can't get the damned original code to work! I can get the code to compile without any problems now that I've got fink handling fftw etc, however, my problem arises in that when I run, I get a "has exited due to signal 11 (SIGSEGV)" error.
After a bit of googling, I've worked out that this is a memory access error and that the way to track it down would be to click the "Enable Guard Malloc" menu item. That item's greyed out for me though.
My code is all in straight old C if that matters. I haven't been able to find any reason why that option would be greyed out!

Spanky
__________________
"No, I'm from Iowa, I only work in outer space."
Spanky Deluxe is offline   0 Reply With Quote
Old Jul 9, 2007, 11:43 AM   #2
Spanky Deluxe
Thread Starter
macrumors 601
 
Spanky Deluxe's Avatar
 
Join Date: Mar 2005
Location: London, UK
Never mind, I worked it out. You can't enable or disable it while a debug window is running I think. I restarted Xcode, opened the code afresh and it let me choose it.
__________________
"No, I'm from Iowa, I only work in outer space."
Spanky Deluxe is offline   0 Reply With Quote
Old Sep 19, 2011, 08:47 AM   #3
teguh123
macrumors member
 
Join Date: Mar 2011
How do you enable it anyway?

Just curious
__________________
How to Learn Math
teguh123 is offline   0 Reply With Quote
Old Sep 19, 2011, 12:32 PM   #4
szymczyk
macrumors regular
 
Join Date: Mar 2006
In Xcode 4 you enable Guard Malloc from the scheme editor. Choose Edit Scheme from the Scheme menu in the project window toolbar. Select the Run step on the left side of the scheme editor. Click the Diagnostics button in the scheme editor. Select the Enable Guard Malloc checkbox.

In Xcode 3 choose Run > Enable Guard Malloc to enable Guard Malloc.
__________________
Mark Szymczyk
Author, Xcode Tools Sensei
http://www.meandmark.com
szymczyk 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
Resolved: Enable "Clean Up By" In Finder? mojitochica OS X Mavericks (10.9) 2 Oct 27, 2013 11:11 PM
Does "Enable LTE" show up for everyone now? Nermal iPhone 22 Jan 29, 2013 09:39 AM
Looking for the "enable TRIM" command lines. Zandra with Z Mac mini 8 Oct 20, 2012 05:00 PM
iPad: iPad 2 wifi 3G - No "Enable 3G" option for cellular data rak007 Jailbreaks and iOS Hacks 2 Oct 12, 2012 11:16 PM
Leak - Preorder Option to Enable "Find My Iphone" nostresshere iPhone 6 Sep 7, 2012 11:05 AM

Forum Jump

All times are GMT -5. The time now is 05:03 AM.

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

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