On Thu, 28 Apr 2005 [EMAIL PROTECTED] 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, [EMAIL PROTECTED] 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 ______________________________________________ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel