From: Joachim W. <wu...@cr...> - 2003-01-14 11:12:22
|
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. Greetings, Joachim =20 |