From r.d.morey at rug.nl  Wed May 20 14:00:13 2009
From: r.d.morey at rug.nl (r.d.morey at rug.nl)
Date: Wed, 20 May 2009 14:00:13 +0200 (CEST)
Subject: [Rd] setWinProgressBar() on closed bar crashes R (PR#13709)
Message-ID: <20090520120013.A29DE28320DF@mail.pubhealth.ku.dk>

Full_Name: Richard D. Morey
Version: 2.8.1
OS: Windows XP
Submission from: (NULL) (129.125.139.114)


The following code will crash Rgui in Windows XP. Of course, I know the code
shouldn't work, but something more graceful than a Windows application error
would be better.

#########Start R Code
bar = winProgressBar(min = 0, max = 100, width = 300)
setWinProgressBar(bar, 25)
close(bar)
setWinProgressBar(bar, 50)
######### End R code

It crashes R with the following Windows error:
RGui: Rgui.exe - Application Error
The instruction at "0x6c715843" referenced memory at "0x000000020". The memory
could not be "read".



[Rd] setWinProgressBar() on closed bar crashes R (PR#13709)
r.d.morey at rug.nl