From murdoch at stats.uwo.ca  Sun Jun 11 15:17:04 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Sun, 11 Jun 2006 09:17:04 -0400
Subject: [Rd] crash on winMenuAddItem (PR#8961)
In-Reply-To: <20060611130047.04D364BE6D@slim.kubism.ku.dk>
References: <20060611130047.04D364BE6D@slim.kubism.ku.dk>
Message-ID: <448C17D0.4090000@stats.uwo.ca>

On 6/11/2006 9:00 AM, thomas.ruf at vu-wien.ac.at wrote:
> Full_Name: Thomas Ruf
> Version: 2.3.1
> OS: Windows XP home
> Submission from: (NULL) (193.154.219.1)

Thanks for the report.  I can reproduce this; it should be easy to fix.

Duncan Murdoch

> 
> 
> 
> Having created a large Menu with many submenus, R crashed (with an error message
> from Windows) when adding another submenu using winMenuAddItem. The problems
> seems to be caused by a limit on the number of submenus that can be created?
> 
> I can reproduce this behavior by creating the following (nonsense) menu:
> 
> winMenuAdd ("Data")
> winMenuAddItem ("Data/Read", "Text", "none")
> winMenuAddItem ("Data/Read/Text 0", "Load File 0", "none")
> 
> n<-30
> for (i in 1:n){
> item= paste("Data/Read/Text",as.character(i) )
> subitem=paste( "Load File",as.character(i))
> winMenuAddItem(item, subitem, "none")
> }
> 
> With n<-10, the menu is created and R continues to work just fine. With n<-30,
> however, my RGui reliably crashes, and with n<-18, it crashes about half of the
> time.
> 
> The are no warnings or error messages from R prior to the crash. 
> 
> Best,
> Thomas
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] crash on winMenuAddItem (PR#8961)
Duncan Murdoch