Hey Daniel,

2011/1/24 Ginsburg, Daniel <[email protected]>:
> I tried upgrading to Wt 3.1.7a and to git, and in both I have a problem in my 
> app where clicking on a WSelectionBox or button causes the "Loading..." 
> indicator to show on the client and it never comes back.  I updated to the 
> latest wtwithqt/lib code in my app and it did not help.  I tried debugging 
> it, but I am not entirely sure which thread is hung.  I think it is the one 
> below.
>
> I tried pulling Qt support out of my app and problem is gone.  I would like 
> opinions on the following:
>
>  a) any idea what the problem is?

I see in our history that we have redesigned wtwithqt because of
changes within Wt, and it has simplified alot. This could have been
the same problem that you witness.

>  b) Is Wt with Qt support going to be stable enough for me to rely on? I 
> would say this is the third or fourth upgrade where I experience some issue 
> since I am relying on Qt. I am using Qt only for QFileSystemWatcher in a 
> separate thread to provide my app notifications when the file system updates. 
>  There are other ways I can do it, Qt just provided a convenient method.  
> Since I really don't need Qt so I'm thinking to just drop it if it is not 
> going to be stable.

The problem with Wt+Qt support has always been that Qt's threading
model and Wt's asynchronous I/O approach can fundamentally not be
mixed. We working against Wt's asynchronous model in libwtwithqt, but
this has been brittle because small changes in Wt's internal handling
of sessions required us to revise this approach. Now the notify()
method on which this relies has stabilized to a particular behaviour
and as a consequence the whole approach to this simplified (this will
be available in 3.1.8).

Still, if using Qt merely from a different thread, you do not even
need libwtwithqt -- I would recommend to redesign your Wt-thread to
Qt-thread notification using non-Qt communication primitives, and then
you can keep using Qt within the auxiliary thread.

Regards,
koen

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to