From 784cb5c26588c8b1812984e0e71ac5ea3febce73 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sat, 28 Feb 2004 13:33:52 +0000 Subject: [PATCH] Corrected a segfault. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@18703 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ PCLib/PCProjectBuilder.m | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5ad7757..6354833 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-02-28 08:40 Gregory John Casamento + + * PCLib/PCProjectBuilder.m: -build: method now calls make: directly + instead of doing so in a thread. AppKit is not thread-safe + (it's not supposed to be :)) and this was causing a segfault when + building. + 2003-11-08 Serg Stoyan * Fix segfault when closing Gorm and Renaissance projects (pathc by diff --git a/PCLib/PCProjectBuilder.m b/PCLib/PCProjectBuilder.m index 8095ee6..5d8a108 100644 --- a/PCLib/PCProjectBuilder.m +++ b/PCLib/PCProjectBuilder.m @@ -602,9 +602,13 @@ [logOutput setString: @""]; [errorOutput setString: @""]; + [self make: data]; + + /* AppKit is not multi-threaded. This is causing a segfault. [NSThread detachNewThreadSelector: @selector(make:) toTarget: self withObject: data]; + */ } - (void)buildDidTerminate