From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Possible fix for crash in NS's tooltip showAtX:Y:for: Date: Thu, 2 May 2013 07:08:44 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1367471333 6165 80.91.229.3 (2 May 2013 05:08:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 May 2013 05:08:53 +0000 (UTC) Cc: David Reitter , Emacs developers To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 02 07:08:51 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UXllD-0004ja-6R for ged-emacs-devel@m.gmane.org; Thu, 02 May 2013 07:08:51 +0200 Original-Received: from localhost ([::1]:45167 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXllC-0006QK-3U for ged-emacs-devel@m.gmane.org; Thu, 02 May 2013 01:08:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXll8-0006QD-Tv for emacs-devel@gnu.org; Thu, 02 May 2013 01:08:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXll6-0004gE-Vx for emacs-devel@gnu.org; Thu, 02 May 2013 01:08:46 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:36934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXll6-0004fc-Oa for emacs-devel@gnu.org; Thu, 02 May 2013 01:08:44 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 957159250 for ; Thu, 2 May 2013 07:08:42 +0200 (CEST) Original-Received: (qmail 19810 invoked by uid 89); 2 May 2013 05:07:34 -0000 Original-Received: from unknown (HELO coolsville.localdomain) (boel.djarv@bdtv.se@176.10.223.235) by mail01.melmac.se with ESMTPA; 2 May 2013 05:07:34 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 09CDC1A1CD8; Thu, 2 May 2013 05:08:48 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.20.26.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159260 Archived-At: Hello. 2 maj 2013 kl. 06:53 skrev YAMAMOTO Mitsuharu = : >>>>>> On Mon, 29 Apr 2013 13:56:49 -0400, David Reitter = said: >=20 >> Suggest to initialize ns_tooltip as shown below. I've been seeing >> occasional crash reports in Fx_show_tip (and showAtX). This may be >> the culprit. (I am not sure if variables in ObjC default to nil all >> the time.) >=20 >> --- a/src/nsfns.m >> +++ b/src/nsfns.m >> @@ -88,7 +88,7 @@ Lisp_Object Qfontsize; >> /* hack for OS X file panels */ >> char panelOK =3D 0; >=20 >> -EmacsTooltip *ns_tooltip; >> +EmacsTooltip *ns_tooltip =3D nil; >=20 > Objective C is not different from the usual C in this respect (i.e., > implicit initialization of objects that have static storage duration). > So the above change does not give any effect in theory, because `nil' > is actually a null pointer. >=20 ns_tooltip isn't static. Jan D.