From f0c2282319ca64b59b4c8989d543b4e86a54978a Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Thu, 29 Sep 2011 17:04:13 +0000 Subject: [PATCH] Shorten the error message here. Move the bulk of the explaination into README.initialize in the Documentation folder. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33909 72102866-910b-0410-8b05-ffd578937521 --- Source/NSThread.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSThread.m b/Source/NSThread.m index 22b4c2000..b06ac1c14 100644 --- a/Source/NSThread.m +++ b/Source/NSThread.m @@ -408,7 +408,7 @@ gnustep_base_thread_callback(void) if (NO == [[NSUserDefaults standardUserDefaults] boolForKey: @"GSSilenceInitializeWarning"]) { - NSLog(@"WARNING your program is becoming multi-threaded, but you are using an ObjectiveC runtime library which does not have a thread-safe implementation of the +initialize method. This means that any classes not already used may be incorrectly initialised, potentially causing strange behaviors and crashes.\nTo put this into context, the runtime bug has been knoown for several years and only rarely causes problems ... the easy workaround being to ensure that any classes used by a new thread have already been used in the main thread before the new thread starts.\nIf you are worried, please build/run GNUstep with a runtime which supports the +initialize method. The GNUstep stable runtime (libobjc) and experimental runtime (libobjc2), available from the GNUstep website and subversion repository, should both work.\nTo disable this warning (eg. for an application which does not suffer any problems caused by this runtime bug), please set the GSSilenceInitializeWarning user default to YES."); + NSLog(@"WARNING your program is becoming multi-threaded, but you are using an ObjectiveC runtime library which does not have a thread-safe implementation of the +initialize method. Please see README.initialize for more information."); } #endif [nc postNotificationName: NSWillBecomeMultiThreadedNotification