I've been debugging it
the problem is with fstream function call which is regular c++
I free fil later and did not post that part of the function
and fil has the right path at time of .open() call
and if I try a string literal its the same crash status