Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Weird XCode bug?

Weird XCode bug?
Thread Tools
shawng77
Registered User
Join Date: Jun 2006
Status: Offline
Reply With Quote
Mar 25, 2006, 02:48 PM
 
I'm trying to input an example from my C++ textbook and XCode continually crashes after entering a particular character. Trying to enter '<' after the last 'j' on line 31 causes the cursor to stop flashing, the spinning beach ball comes up, and I have to force quit. I've tried entering other characters but so far I've only had problems with this one. Can anyone else verify this happening? If so, does anyone have a connection to Apple who can pass this along? This is XCode 2.2, OS 10.4.5.

#include <iostream>
#include <iomanip>
using namespace std;

void mean(const int[], int);
void median(const int[], int);
void mode(const int[], int[], int);
void bubbleSort(int[], int);
void printarray(const int[], int);

int main () {

const int responseSize = 99;
int frequency[10] = {},
response[responseSize] = {6,7,8,9,8,7,8,9,8,5,7,8,9,5,9,8,7,8,7,8,6,7,8,9,3 ,
9,8,7,8,7,7,8,9,8,9,8,9,7,8,9,6,7,8,7,8,7,9,8,9,2,
7,8,9,8,9,8,9,7,5,3,5,6,7,2,5,3,9,4,6,4,7,8,9,6,8,
7,8,9,7,8,7,4,4,2,5,3,8,7,5,6,4,5,6,1,6,5,7,8,7};

mean(response, responseSize);
median(response, responseSize);
mode(frequency, response, responseSize);

return 0;
}

void mean(const int answer[], int arraySize)
{
int j, total = 0;

for(j = 0; j
     
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Mar 25, 2006, 08:53 PM
 
Wow, I see that too. Very bizarre.
     
Ghoser777
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Mar 25, 2006, 09:31 PM
 
What's interesting is it only happens (for me) if you stop at the < and don't type anything after that and then try to move the cursor...
     
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Mar 26, 2006, 01:51 AM
 
Yeah, there seems to be some sort of infinite loop in the syntax highlighting. Very weird.
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Mar 26, 2006, 06:10 AM
 
Originally Posted by Thinine
Yeah, there seems to be some sort of infinite loop in the syntax highlighting. Very weird.

Make sure you report this bug to Apple. Otherwise, it may not get fixed. If it doesn't get explicitly brought to their attention, how can you be sure they know about it?
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Angus_D
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Mar 26, 2006, 11:09 AM
 
Originally Posted by Detrius
Make sure you report this bug to Apple. Otherwise, it may not get fixed. If it doesn't get explicitly brought to their attention, how can you be sure they know about it?
If you don't know how to do that, see http://developer.apple.com/bugreporter/
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 08:47 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,