After you have completed sending and receiving messages, you can shut down the QAnywhere messaging system by completing one of the following procedures.
Stop and close the QAnywhere manager.
mgr.Stop(); mgr.Close();
Close the QAnywhere manager.
mgr->stop(); mgr->close();
Terminate the factory.
QAnywhereFactory_term();
This step shuts down the messaging part of your application.
Stop and close the QAnywhere manager.
mgr.stop(); mgr.close();