John McCabe-Dansted wrote: > > the dialog which would make me interested is the one which produce > > backtrace after each crash, so user can put it in our bugzilla. > > but thats not easy to do i guess. > > Maybe something like the following? > char buffer[512]; > sprintf(buffer, "(echo set height 0 ; echo bt ; yes q) | gdb > ./lyx %d",getpid()); > system(buffer); > (Clearly ./lyx should be replaced with lyx::os::support::utf8_argv(0)) > > Seems to work on my Linux box. There is gdb for MingW but I don't know > if that means it could be made to work on Windows.
you rely not only on gdb but also on bash i think. this wont help on win32. > I imagine that using Qt dialogs if there is a actual crash (rather > than an assertion) may be a little risky. one can launch another binary which just gets lyx backtrace on stdin and puts into QEditText. pavel