[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #15782] ProjectCenter, Win32, crashes when double-clicking source i
From: |
Axel Wefers |
Subject: |
[bug #15782] ProjectCenter, Win32, crashes when double-clicking source in Project Browser |
Date: |
Fri, 17 Feb 2006 13:28:40 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=15782>
Summary: ProjectCenter, Win32, crashes when double-clicking
source in Project Browser
Project: GNUstep
Submitted by: awe
Submitted on: Fri 02/17/06 at 13:28
Category: Application
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=15782>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #15782] ProjectCenter, Win32, crashes when double-clicking source in Project Browser,
Axel Wefers <=