GPF or unstable when opening files with long name
Posted: Fri Aug 13, 2004 1:34 pm
I came across this bizarre behaviour:
When XnView is given a file to open from the command line that is missing an extension, XnView can become unstable or crash.
The problem seems to be worse as the path/filename given to XnView is longer.
For example:
c:\> ren c:\longpath\longpath\longpath\test.jpg c:\longpath\longpath\longpath\test.
c:\> xnview c:\longpath\longpath\longpath\test
This wil either crash xnview immediately after it renders the image, or will freeze it once you close the active window.
Strangely, it seems not to crash if the path is short.
c:\> xnview test.
Doesn't crash.
Normally, this shouldn't be a problem for anybody but I am attempting to write a Firefox extension which will call XnView to read exif information quickly.
I'm giving XnView the filename of the cached image, in my case:
C:\Documents and Settings\L. Kraven\Application Data\Mozilla\Firefox\Profiles\default.76x\Cache>
The cache files do not have proper extensions and are named things like: AC1A40B4d01
In my example, the full commandline would be:
c:\program files\xnview\xnview.exe C:\Documents and Settings\L. Kraven\Application Data\Mozilla\Firefox\Profiles\default.76x\Cache\AC1A40B4d01
This crashes immediately after the image is rendered.
I am running xnView 1.70.4 under Windows XP.
When XnView is given a file to open from the command line that is missing an extension, XnView can become unstable or crash.
The problem seems to be worse as the path/filename given to XnView is longer.
For example:
c:\> ren c:\longpath\longpath\longpath\test.jpg c:\longpath\longpath\longpath\test.
c:\> xnview c:\longpath\longpath\longpath\test
This wil either crash xnview immediately after it renders the image, or will freeze it once you close the active window.
Strangely, it seems not to crash if the path is short.
c:\> xnview test.
Doesn't crash.
Normally, this shouldn't be a problem for anybody but I am attempting to write a Firefox extension which will call XnView to read exif information quickly.
I'm giving XnView the filename of the cached image, in my case:
C:\Documents and Settings\L. Kraven\Application Data\Mozilla\Firefox\Profiles\default.76x\Cache>
The cache files do not have proper extensions and are named things like: AC1A40B4d01
In my example, the full commandline would be:
c:\program files\xnview\xnview.exe C:\Documents and Settings\L. Kraven\Application Data\Mozilla\Firefox\Profiles\default.76x\Cache\AC1A40B4d01
This crashes immediately after the image is rendered.
I am running xnView 1.70.4 under Windows XP.