solved!
it was the instruction:
NumCores = -2; // use multiple cores (Zorro S only)

I commented it and now WFO works perfectly