Hey Peter, 2011/11/4 Peter Wood <peter.w...@usask.ca>: > Hi, > I am not able to reproduce this on any of my computers and browsers, but > some of my users claim that the pop-up created with the following code > sometimes causes the application to crash and then to reload. > Has anybody made any similar experiences? Is there anything I can do to > prevent such hang-ups?
This could be a consequence of exhausting your thread pool. > picture->exec(); This suspends the current thread while waiting for the user to interact with the dialog. Because Wt uses a fixed thread pool this invariably leads to problems. The solution is to use the dialog asynchronously, using show() and reacting to its finished() signal. An improvement to %Wt that has been discussed before is to make sure that exec() fails as soon as it is detected that this would lock up the last thread in the thread pool -- but this hasn't been done yet. With the latest git version, we've redesigned parts of Wt, especially w.r.t. to this thread pool (we are now using boost::asio for this), and maybe we can revisit this feature. Regards, koen ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest