From seanpor at acm.org  Sat Mar 29 18:10:11 2008
From: seanpor at acm.org (Sean O'Riordain)
Date: Sat, 29 Mar 2008 17:10:11 +0000
Subject: [Rd] cpu usage high with windows change dir / winDialogString
	(PR#11045)
In-Reply-To: <47EE6F27.6010706@stats.uwo.ca>
References: <20080328160529.717BA282EFF8@mail.pubhealth.ku.dk>
	<47EE690C.6070300@stats.uwo.ca>
	<971536df0803290923t4c6ef40axc7176141f959a67f@mail.gmail.com>
	<47EE6F27.6010706@stats.uwo.ca>
Message-ID: <8ed68eed0803291010x47e9aaa1y41d1b36d3a021e14@mail.gmail.com>

Hi Duncan,

I suspect that it's not the SHBrowseForFolder call as it seems fine
once the Browse button is pressed - the problem occurs *before* the
Browse button is pressed.

Regards,
Sean


On 29/03/2008, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
> On 29/03/2008 12:23 PM, Gabor Grothendieck wrote:
>  > On Sat, Mar 29, 2008 at 12:06 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
>  >> On 28/03/2008 12:05 PM, seanpor at acm.org wrote:
>  >>> Good afternoon,
>  >>>
>  >>> This is possibly a windows only bug, definitely of comparatively low
>  >>> importance - but for the sake of completeness here we go.  I've
>  >>> searched http://bugs.R-project.org/ etc., but can find no mention.
>  >>>
>  >>> For RGui.exe, the CPU usage goes to 100% for certain dialog boxes for
>  >>> the duration that the dialog box is visible, e.g.
>  >>>
>  >>> * check CPU usage is low
>  >>> * On the RGui.exe menu chose File / Change dir...
>  >>> * the CPU usage goes to 100%
>  >>> * hit OK
>  >>> * the CPU usage goes back down again
>  >> What is the bug here?  I'd guess it's not R using the cpu, rather some
>  >> other process hooked to the dialog, but even if it really is R, why is
>  >> this a bug?
>  >
>  > Maybe R is sitting in a loop consuming all the resources of the system?
>
>
> It's a SHBrowseForFolder call, with a callback.  If there's a bug, it
>  looks to me as though it's in Windows.
>
>
>  Duncan Murdoch
>



[Rd] cpu usage high with windows change dir / winDialogString (PR#11045)
Sean O'Riordain