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

Group
 
 

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

Submitter:  Axel Wefers <awe>
Submitted:  Fri 17 Feb 2006 01:28:39 PM UTC
   
 
Category:  Application Severity:  3 - Normal
Item Group:  Bug Status:  In Progress
Privacy:  Public Assigned to:  stoyan
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

reported as closed.

Thanks

Nicola Pero <nico>
Group 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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-03-17 nico Open/ClosedOpen Closed
    2006-09-05 stoyan StatusNone In Progress
        Assigned toNone stoyan

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code