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 Jan 25, 2006, 03:08 PM   #1
CookieMook
macrumors newbie
 
Join Date: Jan 2006
Xcode 2 Freezes in C++ Command line tool

Hi guys,

I have been programming in C++ for a while in VS and this term I must write code for linux stations, so I am using Mac's developper features for the first time. I have Xcode 2.2 on a G5 dual processor 1.8 GHz and I am stuck with a very frustrating experience: Xcode sometimes freezes on me after I type ">". For instance, writing a simple for loop: for (int ctr = 0; ctr < (Xcode freezes and I have to force quit and start from the last saved version).

Has anyone else experienced this? To get around this very frustrating behavior, I have to save my file as an unknown format (no extension), then Xcode does not recognize any key words but I no longer have Xcode crashing after typing a "<". What is really strange is that it is intermittent: some times I can type a few of these "<" without it crashing, and copy-pasting works fine.

I otherwise like using Xcode. Anyone know how to stop this? ( I am writing a command line C++ project in Xcode 2.2)

Thanks
CookieMook is offline   0 Reply With Quote
Old Feb 6, 2006, 01:24 PM   #2
wallsmd
macrumors newbie
 
Join Date: Feb 2006
I have been experiencing the very same problem on my iMac G5. I donít believe that it every happened with Xcode 2.1. Unfortunately I have not found a solution and I donít think version 2.1 is available for download. If you do happen to find a fix please post it.

Thanks
wallsmd is offline   0 Reply With Quote
Old Feb 6, 2006, 01:39 PM   #3
Fender2112
macrumors 6502a
 
Fender2112's Avatar
 
Join Date: Aug 2002
Location: Charlotte, NC
Send a message via AIM to Fender2112
I had the same problem where Xcode would freeze while I was actually typing the code for the loop. It, to was the < symbol that triggered the freeze. I trashed the project file, created a new project and added all the source files to the new project. All seems well for now.

Also, I've been learning Obj-C this past week and have not encountered this problem. Maybe it is a bug with C++ compiler.
__________________
Really? Really, really!
Fender2112 is offline   0 Reply With Quote
Old Feb 16, 2006, 12:10 PM   #4
wallsmd
macrumors newbie
 
Join Date: Feb 2006
Work Around

The problem seems to have something to do with how xcode looks at function blocks in the code. I have found that if I put both the starting and ending brackets on a function and then insert the code in between there is no problem. However, without the ending bracket it will freeze up as you have described.

Hopefully that helps.
wallsmd is offline   0 Reply With Quote
Old Feb 16, 2006, 12:57 PM   #5
HiRez
macrumors 601
 
HiRez's Avatar
 
Join Date: Jan 2004
Location: Western US
Wow, that's incredibly frustrating, but I have never encountered that with Objective-C development. What happens if you turn off code sensing/completion?
__________________
Go outside, the graphics are amazing!
HiRez is offline   0 Reply With Quote
Old Oct 1, 2006, 08:03 PM   #6
nunley0
macrumors newbie
 
Join Date: Oct 2006
Problem solved!!

Go to the xcode prefrences, and under the Code Sense section, turn off indexing. lol I don't know why this works, but it does.
nunley0 is offline   0 Reply With Quote
Old Oct 1, 2006, 08:26 PM   #7
nunley0
macrumors newbie
 
Join Date: Oct 2006
Renig my previous !!

It worked for a few moments, and then same ol same ol.

On a better note, I found that xcode 2.4 is free for download.
I'm betting that this bug will be handled, but we'll find out.
I'll be back.
nunley0 is offline   0 Reply With Quote
Old Oct 1, 2006, 09:39 PM   #8
nunley0
macrumors newbie
 
Join Date: Oct 2006
Finnally solved!!

Download Xcode 2.4 for free at Apple.com!

Now back to my homework lol.
nunley0 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
Help with command line tool on xcode! noahgolm Mac Programming 5 Aug 19, 2010 08:18 PM
C++ Command line tool - Issue other CLI commands hiddenpremise Mac Programming 5 Jan 13, 2009 06:38 PM
command line tool sujithkrishnan OS X 0 Jul 24, 2008 12:56 AM
what unix command line tools do you use most often? SHankara Mac Applications and Mac App Store 9 Mar 30, 2008 08:22 AM
Help with embedding a command line tool within a Cocoa application? mrichmon Mac Programming 2 Feb 23, 2006 01:25 AM


All times are GMT -5. The time now is 12:28 AM.

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

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