Neptune
Member
Consider that code in a loop, reading in a bunch of data -- And then a memory allocation error happens... Is there a way to catch something like that, and retry the read process?
If there IS a memory allocation error in the first place, is that always my code's fault, or is it just something that can happen?
An allocation error may look like this:
And one more question, is there a function to obtain a file's size, before reading it in?
I see the file_bin_X functions, but I don't think that will work for my text files.
Any information appreciated
If there IS a memory allocation error in the first place, is that always my code's fault, or is it just something that can happen?
GML:
var file = file_text_open_read(file_name);
var load_data = file_text_read_string(file);
file_text_close(file);
Memory allocation failed: Attempting to allocate 17922559 bytes
(~17 mb)I see the file_bin_X functions, but I don't think that will work for my text files.
Any information appreciated
Last edited: