mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
Hello,
i noticed this problem on 6.16 and i had a look at the page search where i found this
looks like the problem is solved with this version but i found a combination where we can see it.

If the file is been used atm (read or write access) and you try to see its size, you get a negative number.

To test this situation the best way is to have a loop reading the file, and maybe another mirc trying to check its file size (can be same mirc)

thanks for your attention

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I cant make this happen. (not saying it didnt happen)
I did however get some results showing NO file size returned, and then the one writing and deleting errored with an access denied to the file, I would assume this is of course becuase i was using /WRITE which if you alter any of the lines besides adding one at the end, rebuilds the entire file (using a temp name) then deletes the original and renames the temp one into it.
That would explain the moments of NO file size, and liekly even the access denied.
I also tried it using another langauge to write and delete from the file, with this the file size remained correct at all times.

Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
I noticed this problem when the file size is bigegr than 2G and smaller than 4G.
I didn't tryed it with > 4G
One of the tests i was reading data from the file and checking the size and the other test i was increasing the file size from 2G to 4G and checking also the file size.
Both gave me the problem.

Thanks for your feedback Davec

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I do know there are some issues with files over 2GB and FAT32 (not mIRC-related). I'm not sure if that's the problem, or if this problem is something mIRC-related.


Invision Support
#Invision on irc.irchighway.net
Joined: May 2005
Posts: 79
M
Babel fish
Offline
Babel fish
M
Joined: May 2005
Posts: 79
i'm pretty sure this is a windows problem, similar events have happened to friends some time ago.

Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
hello and thanks for all your feedback
but, my tests where made on ntfs...so i belive it can be mirc related.

thanks again

Joined: Dec 2002
Posts: 208
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 208
Verified.. at least insofar as $file().size gave the wrong file size (-130365440) as windows was busy making a copy of a 3.87 GB file. Once the file finished copying, mIRC got the file size right.

mIRC 6.16/winXP+sp2

Last edited by Hrung; 29/06/05 10:42 PM.

If I knew now what I will know then... maybe things will have been different...
Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Quote:
If the file is been used atm (read or write access) and you try to see its size, you get a negative number.

Confirmed, and yes, this really is a bug in mIRC, not in Windows.


Saturn, QuakeNet staff

Link Copied to Clipboard