I tried something different, which also did not work: split the files in three parts, each around 100MB and load them to 3 separate textfiles. when I try to load the second file, I get an error saying pd: resizebytes() failed -- out of memory if I try to load the 3rd file after that, my system freezes completely, and I have to reboot. this will be used for an installation, running day and night, so I am using [clear( and will load the files at sime time during night. (it takes about ten seconds to load the file, so I guess I can do that around 1pm). 'if you are not cheating, you are not doing it right.' (I learned that from the last blender camp). marius.
Mathieu Bouchard wrote:
On Sat, 27 Oct 2007, marius schebella wrote:
textfile can handle bigger files than msgfile, but there seems to be a limit, too. I tried to open a >250MB file, and Pd crashed. marius.
If you measure bytes using an int32, the limit is 2GB, but if you measure it in bits, the limit is 256MB. [textfile] does read all the file into a buffer as big as the file. I didn't find anything that counts memory in bits, so perhaps it's just a coïncidence and the bug was something else, but I did fix another 256MB limit bug recently by adding parentheses in something like:
num_entries * bits_per_entry / 8
When crossing the limit, the numbers become negative, and trying to allocate a negative amount causes the allocator to either abort the process or return NULL or corrupt memory...
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada