Hybrid (GUI+CLI) application - PrintN
Posted: Tue Mar 10, 2015 11:04 pm
hi all,
i am making a GUI application, however I would also like to use PrintN() to send additional information to the console in case someone starts the application through the terminal.
Every time I debug-run this from the editor, i get an error at the first PrintN(): "No console is currently opened." When I compile the application and run it outside the editor, it seems to work though. So my question are these:
- Is it legitimate to use PrintN() without OpenConsole()? Will it fail silently, or will it bring the application to a halt?
- Is there something like IsConsoleOpen() - a call that checks whether PrintN() can be executed without fail?
cheers
i am making a GUI application, however I would also like to use PrintN() to send additional information to the console in case someone starts the application through the terminal.
Every time I debug-run this from the editor, i get an error at the first PrintN(): "No console is currently opened." When I compile the application and run it outside the editor, it seems to work though. So my question are these:
- Is it legitimate to use PrintN() without OpenConsole()? Will it fail silently, or will it bring the application to a halt?
- Is there something like IsConsoleOpen() - a call that checks whether PrintN() can be executed without fail?
cheers