If your application terminates after the message loop is exited then the system will clean up all of the resources that were allocated by the application. By itself, PostQuitMessage does not do resource cleanup.
Does PostQuitMessage(0) deallocates all the memory allocated for widgets in main thread?
Harshithraj1871
1,536
Reputation points
Hi,
I'm working on a CPP win32 application. We are developing a multi windowed application. When we want to force quit the application, we use PostQuitMessage(0) which stops the event loop and all the window visible will be closed.
But by doing this will the memory allocated for the widgets and windows be destroyed? Or is it assumed that the thread will exit and allocated memory is taken care of by thread exit?