bugGNUstep - Bugs: bug #15782, ProjectCenter, Win32, crashes when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #15782: ProjectCenter, Win32, crashes when double-clicking source in Project Browser

Submitted by:  Axel Wefers <awe>
Submitted on:  Fri 17 Feb 2006 01:28:39 PM UTC  
 
Category: ApplicationSeverity: 3 - Normal
Item Group: BugStatus: In Progress
Privacy: PublicAssigned to: Sergii Stoian <stoyan>
Open/Closed: Closed

Sat 17 Mar 2007 03:59:57 PM UTC, comment #2:

reported as closed.

Thanks

Nicola Pero <nico>
Project Member
Sat 18 Feb 2006 08:12:05 AM UTC, comment #1:

IIRC this one is already fixed in svn ... it was a bug with the program setting its defaults using the name 'ProjectCenter' rather than the actual application name.

Richard Frith-Macdonald <CaS>
Project Member
Fri 17 Feb 2006 01:28:39 PM UTC, original submission:

Environment:
- GNUstep Windows binaries for base 1.11.1 and gui 0.10.1
- ProjectCenter v0.4.3

ProjectCenter throws an exception if you try to edit any source file by double clicking it in the Project Browser panel.

Exception message:
Critical Error in ProjectCenter.exe
NSRangeException: Index 0 is out of range 0 (in 'removeObjectAtIndex:').

The crash happens in Library/PCProjectEditor.m:

- (PCEditor )editorForFile:(NSString )path
categoryPath:(NSString *)categoryPath
windowed:(BOOL)yn
{
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
NSString *ed = [ud objectForKey:Editor];
PCEditor *editor;

if (![ed isEqualToString:@"ProjectCenter"])
//Dirty FIX: if (ed != nil && ![ed isEqualToString:@"ProjectCenter"])
{
editor = [[PCEditor alloc] initExternalEditor:ed
withPath:path
projectEditor:self];
return editor;
}

//...
}

[ud objectForKey:Editor] returns nil altough it is set in the PCPrefController method -setDefaultValues via the NSUserDefaults method -setPersistentDomain:forName:. Everything is fine if I add [ud setObject:@"ProjectCenter" forKey:Editor]; to -setDefaultValues in PCPrefController. It seems that it is not a bug in ProjectCenter itself but in the Win32 backend.

Axel Wefers <awe>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nico (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 17 Mar 2007 03:59:57 PM UTCnicoOpen/ClosedOpen=>Closed
    Tue 05 Sep 2006 04:59:50 PM UTCstoyanStatusNone=>In Progress
      Assigned toNone=>stoyan

    Back to the top


    Powered by Savane 3.1-cleanup1