Use the Release version in Visual studio , and know that the working dir in $(ProjectDir) and you can change it in the solution explorer and it will work Insha'Allah!