From ggrothendieck at gmail.com  Sat Mar 29 17:47:07 2008
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Sat, 29 Mar 2008 12:47:07 -0400
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: <971536df0803290947v926065avf1992dcaa91281cc@mail.gmail.com>

On Sat, Mar 29, 2008 at 12:32 PM, 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
>

I wonder if any of the numerous settings in the _browseinfo
structure might be impacting this such as looking for networking
folders and if the user's networking setup impacts this since it
could start performing some network functions to find files over
a network.



[Rd] cpu usage high with windows change dir / winDialogString (PR#11045)
Gabor Grothendieck