No error here. This works

Code:
var num = txt_for_dir_plus(mytext, "", "*.MDL|*.HMP|-*_open.*");
mytext->flags |= SHOW;




This fails
Code:
var num = txt_for_dir_plus(mytext, "\\FDay", "*.MDL|*.HMP|-*_open.*");
mytext->flags |= SHOW;



This works
Code:
var num = txt_for_dir_plus(mytext, "FDay", "*.MDL|*.HMP|-*_open.*");
mytext->flags |= SHOW;


THIS also works
Code:
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
Code:
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 --

Last edited by Malice; 07/08/16 22:36.