No error here. This works
var num = txt_for_dir_plus(mytext, "", "*.MDL|*.HMP|-*_open.*");
mytext->flags |= SHOW;
This fails
var num = txt_for_dir_plus(mytext, "\\FDay", "*.MDL|*.HMP|-*_open.*");
mytext->flags |= SHOW;
This works
var num = txt_for_dir_plus(mytext, "FDay", "*.MDL|*.HMP|-*_open.*");
mytext->flags |= SHOW;
THIS also works
var num = txt_for_dir_plus(mytext, "FDay\\", "*.MDL|*.HMP|-*_open.*");
mytext->flags |= SHOW;
Notice line 40-41 of evilSOB's code str_cat's
if(((tmp_str.chars)[tmp_str.length-2]!='\\')&&(str_len(tmp_str)))
{ str_cat(tmp_str, "\\"); } str_cat(tmp_str, all_wilds[t_cnt]);
Based on my results. Check the value of 'tmp_str' in you project. Because a hard/hand coded address works for me with no errors. Further notes are - I used a single main folder with only 10 mdl/hmp files to list, my text held 100 strings and I surely did not exceed that. Meaning that level memory and nexus on hand was more than enough.
Take Care --