I am developing an application that should run in the command-line (console application), without gui. I want to reduce the memory footprint and load time. My application will be controlled trough a network connection. In Matlab I can have the callbacks persist after the script/function exits. In the compiled version,  I have included a pause(), to prevent the application from terminating. But when I run the compiled version it doesn't seem to respond to the callbacks. As there is no wait() for tcpip objects, I don't know how to keep the app. from exiting. Am I doing anything wrong? Is what I want possible, or do I need a Windows executable to have the event loop for the callbacks?

Similar questions and discussions