From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- pipermail/nel/2001-March/000365.html | 81 ++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 pipermail/nel/2001-March/000365.html (limited to 'pipermail/nel/2001-March/000365.html') diff --git a/pipermail/nel/2001-March/000365.html b/pipermail/nel/2001-March/000365.html new file mode 100644 index 00000000..5730e6b9 --- /dev/null +++ b/pipermail/nel/2001-March/000365.html @@ -0,0 +1,81 @@ + + + + [Nel] 'data/' bug + + + + + + +

[Nel] 'data/' bug

+ Vianney Lecroart + lecroart@nevrax.com
+ Wed, 7 Mar 2001 14:25:17 +0100 +

+
+ +
Hi there!
+
+We, at last, understood the problem of the 'data/' bug on linux.
+In fact, in our rawdatafiles, there are some empty file names and in our
+program, we try to find where these files are located.
+For that, we use a function (CPath::lookup()) that tries to find the file in
+all directories provided before by the user.
+To know if a file exists, we try to open it and if the opening success, we
+return true (CFile::fileExists()).
+When the prog tries to find the file "", first it calls fileExists("") that
+returns false.
+Next step, it tries with the first directory in his list,
+fileExists("data/"+""); On windows, the OS can't open the directory
+("data/")
+so it returns false. On linux, it can, so it returns true and the program
+tries to read the directory as if it was
+a texture, and of course, it fails (end of file).
+
+We fixed the problem by adding this next line in the top of the function
+string CPath::lookup( const string& filename ) in path.cpp:
+
+ if(filename.empty())
+  throw EPathNotFound( filename );
+
+Of course, we put it on cvs and it will be synchronized this night (GMT+1).
+
+
+Vianney Lecroart
+---
+lead network programmer / nevrax.com
+icq#: 6870415
+homepage: http://ace.planet-d.net
+www.geekcode.com: GCS/E d- s+++: a-- C+++$ UL++ P- L+++>+$ E+>- W++ N+ o? K-
+w++$ O- M- V- PS- PE? Y PGP t 5? X+ R- tv++ b- DI D+ G e++ h+ r-- y?
+
+
+
+
+ + + +
+

+ -- cgit v1.2.1