When attempting to open very large files (like, 600MB), hex viewer stays empty. No error messages are shown.
I tried to determine critical file size. In my tests, I used the following command line:
create_file.py t <file_size> && bc2 t t /fv="Hex Viewer"
(create_file.py script is shown at the end of this message; it just creates a file of specified size, filled with 0s).
On my computer, file size of 493551616 (0x1D6B0000) works OK, and 493551617 (0x1D6B0001) fails.
My initial guess was that the problem might be related with address space or virtual memory limitation, but it seems that virtual memory is not a problem: the critical file size corresponds neither to my computer's virtual nor physical memory capacity (it has 768MB of RAM and 1787332MB virtual memory limit).
################################################## ###
# create_file.py
# usage: %0 file_name file_size
import sys
name = sys.argv[1]
size = int(sys.argv[2], 0)
f = file(name, 'wb')
if size :
f.seek(size - 1)
f.write('\x00')
################################################## ###
I tried to determine critical file size. In my tests, I used the following command line:
create_file.py t <file_size> && bc2 t t /fv="Hex Viewer"
(create_file.py script is shown at the end of this message; it just creates a file of specified size, filled with 0s).
On my computer, file size of 493551616 (0x1D6B0000) works OK, and 493551617 (0x1D6B0001) fails.
My initial guess was that the problem might be related with address space or virtual memory limitation, but it seems that virtual memory is not a problem: the critical file size corresponds neither to my computer's virtual nor physical memory capacity (it has 768MB of RAM and 1787332MB virtual memory limit).
################################################## ###
# create_file.py
# usage: %0 file_name file_size
import sys
name = sys.argv[1]
size = int(sys.argv[2], 0)
f = file(name, 'wb')
if size :
f.seek(size - 1)
f.write('\x00')
################################################## ###
Comment