Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When an exception is raised, it is printed out to standard error! (or how do I get exceptions to be printed to X or displayed in a window?

0
Posted

When an exception is raised, it is printed out to standard error! (or how do I get exceptions to be printed to X or displayed in a window?

0

One feature of running an application in the gtk mainloop is that exceptions raised don’t cause an actual crash. All that happens is the callback that was executing will be interrupted — the mainloop goes on spinning and handling events. The exception is printed out to standard error, which is great for development and developer-testing, but not as great when running without a console attached to your application, or in a production environment. There are two approaches here, both useful in different situations. • The first is assigning your own file to sys.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123