From: Alan W. I. <ir...@be...> - 2003-01-14 17:56:39
|
On Tue, 14 Jan 2003, Joachim Wuttke wrote: > Observation: > Load file foo.dat from D:\path, plbop(), plot, everything works. > Load same file from V:\path, plbop(), application crashes: "access violation". > The only difference: drive V is read-only. > Explication: > plbop() calls tmpfile(), which comes with libc. This is a posix routine that > creates a temporary file. It looks as if the W2k implementation attempts to > create the temporary file in just the last directory the application was in > contact with. > Proposal: > If I see correctly, in the whole of plplot there is only one call to tmpfile(). > Therefore we could easily either replace tmpfile() by an explicit fopen, or > introduce a preprocessor switch and replaced tmpfile for Windows only. > Joachim, I can find no reference to tmpfile in CVS (to be released Saturday as plplot-5.2.0) under src/*.c and certainly not in plbop. Could you please have a look at the CVS version (a) to make sure this specific problem is not occurring, and (b) for general testing before the release? Directions for anonymous CVS access are given at http://sourceforge.net/cvs/?group_id=2915. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |