Page 1 of 1

Xnview 1.82.4 crashes when opening an image with an UNC path

Posted: Fri Jun 02, 2006 4:08 pm
by Micha
everytime on one computer with long path like
\\servername\path\path\path\image.jpg

and "only" sometimes on another computer

Re: Xnview 1.82.4 crashes when opening an image with an UNC

Posted: Sat Jun 03, 2006 6:49 am
by xnview
Micha wrote:everytime on one computer with long path like
\\servername\path\path\path\image.jpg

and "only" sometimes on another computer
How do you open it?

Posted: Sun Jul 30, 2006 12:03 am
by darkfader
I think the limit for windows is around 2048 characters or so. Several times explorer.exe crashed because my Linux server had files with too long paths and Windows could not handle it.
Anyway, I tried it (starting from command-line otherwise explorer won't open anything) like this:
"c:\Program Files\XnView\xnview.exe" "z:\akusho\download\this is a very long pathname oaewjc5rlw4atliae tiuya wicty43lc5ryw wicty43lc5ryw4ac5yla7iwbt587bactw5ctbawl784kbt54ckw6bta54ckbawt457cbtw4aunakw4b5c4ac5yla7iwbt587bactw5ctbawl784kbt54ckw6bta54ckbawt457cbtw4aunakw4b5c\al
so a very long filename.jpg"
First it gives a warning dialog that it cannot open the file. It also shows a truncated filename with some garbage characters at the end because it's not null-terminated. When closing the dialog, it generates a unhandled access violation exception.
From the dr.watson logs, it seems like it corrupts the stack.