discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ..., and a fix to avoid Gorm crashes


From: Gregory John Casamento
Subject: Re: ..., and a fix to avoid Gorm crashes
Date: Sun, 19 Oct 2008 18:49:17 -0700 (PDT)

Reviewed and accepted this patch, thanks. :) 
 
Gregory Casamento -- Principal Consultant - OLC, Inc
# GNUstep Chief Maintainer


----- Original Message ----
From: Wolfgang Lux <wolfgang.lux@gmail.com>
To: DISCUSS GNUstep <discuss-gnustep@gnu.org>
Sent: Sunday, October 19, 2008 5:54:27 PM
Subject: ..., and a fix to avoid Gorm crashes

Gorm crashes more or less reliably when opening and closing multiple
documents. These crashes are due to dangling document pointers which
are not removed from the (private) document maps maintained by various
editors. Actually, GormImageEditor and GormObjectEditor contain code
to remove those pointers from their respective maps, but this code has
been commented out (apparently as a temporary "fix" to avoid crashes
because the respective code is sometimes invoked too late, i.e., after
the document has been released). Since the editors cannot retain the
documents without introducing a reference cycle, the correct solution
is to observe the IBWillCloseDocumentNotification notifications posted
by the document. This is implemented by the attached patch.

Wolfgang


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
reply via email to

[Prev in Thread] Current Thread [Next in Thread]