hello,
I am trying to read out strings from a file, check if they are a valid keywords and if so call a function or set a variable etc.. In most the cases the functions get called as expected, but sometimes the engine crashes in the function, which compares the strings.
After some debugging i found out, that the engine crashes at the str_cmpii function. So I checked if the strings are valid by outputting them with diag(). Both strings were correct, but the engine still crashed at that function.
As far as I could observe it, the crash isn't caused by a special string, but if the file size exceeds a limit.
So my question is what factors can cause this crash else, if both passed strings are 'valid'?
diag(string1); //give correct output
diag(string2); //works, too
if(str_cmpi(string1,string2)){//Crash!
[...]
}