how to resolve this problem , i’m fix this problem with running program on the terminal. not directly on debug mode in visual studio.
after you build on vs you will get .exe file you will running on comman line
ProjectGW.exe [--name picture--]
i solved with this method.