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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How do I enable the use of a USB MIDI controller over Apple Remote Desktop? serr Mac Applications and Mac App Store 0 Jun 21, 2010 01:38 PM
How do i get the tethering option to dissapear? bamafever09 iPhone 5 Jun 27, 2009 12:12 PM
How do you enable the battery percentage on the top right on the iPhone 3GS? iHalo iPhone 6 Jun 21, 2009 11:02 PM
How do I get the "cellular data network" option? Gix1k iPhone Tips, Help and Troubleshooting 1 Jun 18, 2009 02:00 PM
How Do I enable more Resolution options? PseudoKirby OS X 3 Dec 26, 2007 08:51 PM


All times are GMT -5. The time now is 09:35 PM.

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

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