Re: [Interest] More on Exceptions

2024-05-25 Thread Thiago Macieira
On Saturday 25 May 2024 09:51:49 GMT-3 Jean-Michaël Celerier wrote: > Likely there are "bad things" that could theoretically happen but in 10 > years of https://ossia.io across Mac, Windows, Linux and tens of thousands > of exceptions being caught after unwinding through the Qt and QWidget event >

Re: [Interest] More on Exceptions

2024-05-25 Thread Thiago Macieira
On Saturday 25 May 2024 09:27:54 GMT-3 Turtle Creek Software wrote: > Thiago, I'll describe what happens when our typical exception is thrown, > since conditions are very different from what you describe. > > Before any method uses a pointer, it first does a sanity check. If nullptr > it shows a d

Re: [Interest] More on Exceptions

2024-05-25 Thread Jean-Michaël Celerier
I share a similar experience. Likely there are "bad things" that could theoretically happen but in 10 years of https://ossia.io across Mac, Windows, Linux and tens of thousands of exceptions being caught after unwinding through the Qt and QWidget event handling due to fairly defensive programming

[Interest] More on Exceptions

2024-05-25 Thread Turtle Creek Software
Thiago, I'll describe what happens when our typical exception is thrown, since conditions are very different from what you describe. Before any method uses a pointer, it first does a sanity check. If nullptr it shows a dialog with file/line number and what failed, then throws an exception to avoid