Wim Dumon wrote: > 2009/5/9 Andrii Arsirii <[email protected]>: > >> Hi all. >> >> From this snippet: >> >> Wt::WApplication *createApplication(const Wt::WEnvironment& env) >> { >> Wt::WApplication* app = new Application(env); >> return app; >> } >> >> >> > > Would this solve your problem: > Wt::WApplication *createApplication(const Wt::WEnvironment& env) > { > try { > Wt::WApplication* app = new Application(env); > } catch (...) { > abort(); > } > return app; > } >
I already tried this way. Trace is shown from the catch block and not from the place where exception is thrown. This is not much that useful. > Or, in case that it does not happen during construction, do the same > trick but in WApplication::notify. I'm not sure that this will still > give you your stack trace, though... It won't... > Would it be possible to set a > breakpoint on the exception's constructor? > What do you mean, Wim? To launch process in gdb? I won't be able to watch for process for a long time. Exceptions might happen once a month:) > The main reason that all exceptions are caught there is because we do > not want that an uncaught exception from one session terminates the > entire application (and therefore all sessions), but I understand that > you sometimes want that behaviour during development. > In case if this behavior (whole application core dump with aborting all the sessions) is unwanted - wt user could launch each session in new process. AFAIK, wt supports this. Or, application developer could catch all exceptions in code my himself. Anyway, either this or that leaves some options for developer. But right now there are no options:) > Best regards, > Wim. > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > > > -- Andrii Arsirii Streamco http://streamco.org.ua ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
