(PR#7821) [Rd] Rgui crash when >1 figure plotted to single wmf
ripley at stats.ox.ac.uk
ripley at stats.ox.ac.uk
Fri Apr 29 08:40:52 CEST 2005
On Thu, 28 Apr 2005 rich.fitzjohn at gmail.com wrote:
> R for Windows crashes where more than one plot is plotted to a windows
> metafile where an integer format is not included in the character
> string (i.e. when attempting to write more than one plot to the same
> file).
That is a user error, but the C code is missing a test for a non-NULL
pointer.
What is unclear is why the metafile cannot be created. Although we have
called CloseEnhMetafile and DeleteEnhMetafile, it seems Windows is still
locking the file it opened. I don't know how to work around that.
> win.metafile("tmp.wmf")
> plot(1:10)
> plot(1:10)
>
> The following dialogues then come up:
>
> Unable to create metafile
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel
mailing list