On Sep 27, 2007, at 11:16 AM, Abdelrazak Younes wrote:
Bennett Helm wrote:
On Sep 27, 2007, at 5:32 AM, Abdelrazak Younes wrote:
Peter Kümmel wrote:
Wouldn't it be better to catch an exception in main:
catch { QCoreApplication::exit(1) return 1; }
I only ask, because we had really strange cross-platform
problems in
the past because of using exit
I did that (I committed it inadvertently together with r20530).
It seems to work fine.
Could someone on Mac report if there's any problem please? In
order to test it please apply this patch and try to insert a new
inset in a new document. In principle it should exit without
crashing. Perhaps we should warn the user that something bad
happened.
I haven't been following this thread, but I applied the patch,
created a new document, and inserted a note inset, and nothing
unusual happens. That is, the note inset is created, and I can
continue typing, etc., without any crash or exit. Am I doing
something wrong?
No, my fault sorry. Try with a Math inset.
OK. Creating a math inset causes it to quit immediately, without
saving (without even an emergency save). There's nothing written to
the crash log, but the following appears in console.log:
terminate called after throwing an instance of 'int'
Is that what you expected?
Bennett