From murdoch at stats.uwo.ca  Sat Mar 29 17:32:39 2008
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Sat, 29 Mar 2008 12:32:39 -0400
Subject: [Rd] cpu usage high with windows change dir / winDialogString
 (PR#11045)
In-Reply-To: <971536df0803290923t4c6ef40axc7176141f959a67f@mail.gmail.com>
References: <20080328160529.717BA282EFF8@mail.pubhealth.ku.dk>	
	<47EE690C.6070300@stats.uwo.ca>
	<971536df0803290923t4c6ef40axc7176141f959a67f@mail.gmail.com>
Message-ID: <47EE6F27.6010706@stats.uwo.ca>

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)
Duncan Murdoch