From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: System calls without error checks in w32 Date: Sat, 29 May 2010 22:35:17 +0300 Message-ID: <83mxvitsay.fsf@gnu.org> References: <83ocfytxhg.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1275161739 311 80.91.229.12 (29 May 2010 19:35:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 May 2010 19:35:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 29 21:35:37 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OIRom-0008DP-Mm for ged-emacs-devel@m.gmane.org; Sat, 29 May 2010 21:35:36 +0200 Original-Received: from localhost ([127.0.0.1]:48331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIRol-0001uF-Q0 for ged-emacs-devel@m.gmane.org; Sat, 29 May 2010 15:35:35 -0400 Original-Received: from [140.186.70.92] (port=55765 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIRoe-0001pU-AS for emacs-devel@gnu.org; Sat, 29 May 2010 15:35:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIRod-0005F9-5v for emacs-devel@gnu.org; Sat, 29 May 2010 15:35:28 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:34241) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIRoc-0005Et-VN for emacs-devel@gnu.org; Sat, 29 May 2010 15:35:27 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L37007004UHX400@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 29 May 2010 22:35:17 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.245.238]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L37008CK52S5800@a-mtaout20.012.net.il>; Sat, 29 May 2010 22:35:17 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125343 Archived-At: > From: Lennart Borgman > Date: Sat, 29 May 2010 20:42:40 +0200 > Cc: emacs-devel@gnu.org >=20 > CreateFontIndirect > DestroyCaret > ExtTextOut > GetForeGroundWindow > GetKeyboardState > GetKeyboardState > GetModuleHandle > GetProcAddress > GetTextExtentPoint32 > GetWindowPlacement > GetWindowRect > KillTimer > LocalFree > PostMessage > PostThreadMessage > RegisterHotKey > ReleaseCapture > SelectObject > SetWindowLong >=20 > A few of them does not return errors, but return value may have to = be > checked anyway. If you can suggest what to do when any of these fails, please do. > >> =C2=A0 =C2=A0 DebPrint (("error w32_creatwindow.AjdustRectangle = =3D> %d\n", > >> GetLastError ())); > >> > >> to all of them? Is there anyone who has anything against this? > > > > What for? >=20 >=20 > I have for several years complained about frequent crashes. They ar= e > quite irritating actually. >=20 > I have to reboot quite often too, maybe because of errors in the > system calls (some resource is leaking). >=20 > Menus often stops working. Difficult to track down, and even more s= o > without knowing if some bad system calls where involved. >=20 > Emacs can totally hang. Or it can loop without yeilding. At least t= he > first one can be a bad system call. I don't see how any of these problems could be solved by using DebPrint.