Hey Hadass,

2010/1/14 HADASS YAARI <[email protected]>:
> Hey Koen,
> 1. We update the page every 1 second. The table have 60 rows and 25 columns 
> of Wtext. Most of the time, the browser is stuck (when loading - and loading 
> take at least half a second).
> 2.just for checking I decided to emit the signal with the Wtimer - I wanted 
> to check if the context is the problem - but apperantly not. Of course this 
> is not the way I want it to run. I want that the cyclic thread will emit it 
> with no use of the Wtimer.
> 3. I use windows. Because our company is a close network, we don't update the 
> version very often and the version 2.2.3 is still goog for us (unless 
> something was fixed).
> 4. How can I check that the lock doesn't protect me? Why does the signal of 
> the Wtimer works fine and mine not?

I have no idea how to check this on Windows...

The signal of the WTimer may work fine because it is not fired from
another thread.

> 5. The only difference I see between my application and SimpleChat example is 
> that the signal is a member of a member of the widget and in my application 
> the signal is a member of an outer class. And also the signal is emitted when 
> a button is pushed in your example and in my application the signal is 
> emitted periodically. Do I have to get the lock when I emit the signal? (I 
> don't do that now and it doesn't seem logical to do so).

There is a problem with emitting a signal from a thread that is not
bound to a WApplication: the signal keeps a sender emit stack inside
the application object, and this will thus not be possible for you.
Perhaps this is the root cause for all your problems. You need to bind
the helper thread to your application using
WApplication::attachThread(), perhaps this solves the problem?

I would perhaps advise to upgrade to a more recent version of Wt if
you are planning to use server push, since there might have been other
fixes for it since 2.2.3.

Regards,
koen

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to