From: znek Date: Tue, 5 Jul 2005 12:07:03 +0000 (+0000) Subject: new debugging feature X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=997c35ef545ef8d592fbf70c126d9d4043b354a8;p=scalable-opengroupware.org new debugging feature git-svn-id: http://svn.opengroupware.org/SOGo/trunk@661 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/Main/ChangeLog b/SOGo/Main/ChangeLog index 7e2f7d5c..560b1bba 100644 --- a/SOGo/Main/ChangeLog +++ b/SOGo/Main/ChangeLog @@ -1,3 +1,8 @@ +2005-07-05 Marcus Mueller + + * SOGo.m: added new default 'SOGoEnableDoubleReleaseCheck' for + debugging of NSAutoreleasePool issues (v0.9.29) + 2005-03-28 Helge Hess * SOGoProductLoader.m: do not try to load directories without diff --git a/SOGo/Main/README b/SOGo/Main/README index ce89c08f..82a80b35 100644 --- a/SOGo/Main/README +++ b/SOGo/Main/README @@ -15,6 +15,9 @@ Defaults SOGoCrashOnSessionCreate - bool - crash the server if a session is created => useful for debugging + SOGoEnableDoubleReleaseCheck - bool - call + +[NSAutoreleasePool enableDoubleReleaseCheck:YES] upon start + => useful for debugging What it does ============ diff --git a/SOGo/Main/SOGo.m b/SOGo/Main/SOGo.m index 03d3865d..59d43860 100644 --- a/SOGo/Main/SOGo.m +++ b/SOGo/Main/SOGo.m @@ -58,6 +58,10 @@ static BOOL doCrashOnSessionCreate = NO; NSLog(@"Note: vmem size check enabled: shutting down app when " @"vmem > %d MB", vMemSizeLimit); } +#if LIB_FOUNDATION_LIBRARY + if ([ud boolForKey:@"SOGoEnableDoubleReleaseCheck"]) + [NSAutoreleasePool enableDoubleReleaseCheck:YES]; +#endif } - (id)init { diff --git a/SOGo/Main/Version b/SOGo/Main/Version index 9a461be1..c7e764ff 100644 --- a/SOGo/Main/Version +++ b/SOGo/Main/Version @@ -1,6 +1,6 @@ # Version file -SUBMINOR_VERSION:=28 +SUBMINOR_VERSION:=29 # v0.9.24 requires libWEExtensions v4.5.67 # v0.9.16 requires libNGExtensions v4.5.136