From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Bug: can not start a w32 GUI program from Emacs Date: Sat, 30 Dec 2006 17:04:02 +0100 Message-ID: <45968DF2.4090607@gmail.com> References: <4591C075.3040905@gmail.com> <45938DD6.6040307@gnu.org> <4595BC2E.2070501@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167494661 21163 80.91.229.12 (30 Dec 2006 16:04:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2006 16:04:21 +0000 (UTC) Cc: emacs-devel@gnu.org, jasonr@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 30 17:04:20 2006 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.50) id 1H0gh0-0003Fn-MC for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2006 17:04:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0gh0-000455-9C for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2006 11:04:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H0ggq-00044i-A4 for emacs-devel@gnu.org; Sat, 30 Dec 2006 11:04:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H0ggp-000441-Le for emacs-devel@gnu.org; Sat, 30 Dec 2006 11:04:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0ggp-00043w-Fv for emacs-devel@gnu.org; Sat, 30 Dec 2006 11:04:07 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H0ggk-0002L8-TY; Sat, 30 Dec 2006 11:04:03 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:64399 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H0ggi-0005Y6-9R; Sat, 30 Dec 2006 17:04:01 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Eli Zaretskii In-Reply-To: X-Antivirus: avast! (VPS 0665-0, 2006-12-29), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H0ggi-0005Y6-9R. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1H0ggi-0005Y6-9R 3b0b104a0c060ed605bbb80ae7c2a86c 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:64498 Archived-At: Eli Zaretskii wrote: >> Date: Sat, 30 Dec 2006 02:09:02 +0100 >> From: "Lennart Borgman (gmail)" >> Cc: Emacs Devel >> >> I think I know the source of the problem now. It seems to be an MS >> Windows bug. Opening and just closing any menu eats 4 GDI Objects >> (according to Task Manager) that are assigned to explorer.exe. >> In those cases where I have seen the problem XP has been running for >> quite a while and the number of GDI Objects for explorer.exe seems >> to have meat a limit. >> > > How long is ``quite a while'', and how many GDI object did you see > used by explorer in the Task Manager? > > Anyway, AFAIK there's no relation between GDI objects usage and > inability of start-process to run the program. > It takes quite a while for this to show up. Task Manager says that explorer.exe holds 9,999 GDI objects when it does and each menu access adds 4 to that figure (before it hits the roof). I believe start-process may work as expected, but the program that was started does not. Maybe there is some error code from CreateProcess indicating this but I do not know. The started program is not painted on the screen as it should. Just a transparent window with borders. > >> Have anyone heard of this bug before? Fully patched XP Professional. >> > > My XP system casually runs for weeks on end, and I never saw any > problem with resource depletion. But I didn't try to run explorer > from Emacs, either. > I think I have found the circumstances then this bug shows up. This bug only shows up if you use StickyKeys. (I am rather used to notice obscure bugs and this is one of them. MS has even once told my employer that they wanted me to stop reporting bugs. Until things finally broke down completely because of the bugs I noticed subtle things from.) So now I am thinking about helping MS by reporting the bug. There something inside me hesitating, but I think I will still do that. ;-) Do you have any idea of where to report it?