ofExit code not passed on windows?

Hello,

I would like to exit OF with certain status code.
ofExit takes a parameter status, which is supposed to be the status code.
However no matter what I pass it exits always with zero.
Is it a bug or there is some other call that I should use to exit ?

Thanks
M

I don’t have any issues, what are you doing in the main.cpp?

for me it doesn’t work. it exists with 0.

here is my exit call from ofApp.cpp

	ofExit(12);

here is my main.cpp

auto mainApp = make_shared<ofApp>();

ofRunApp(squareWindow, mainApp);
ofRunMainLoop();

ok… I see now.

I should do “return ofRunMainLoop();” )

thanks!