Hi,

Any thoughts on this issue? Is this something that will be fixed (or at 
least should be fixed)?

BR,
Janne

On 26.10.2010 12:46, Janne Rönkkö wrote:
> Hi,
>
> Now I had the time to check what was causing the session restart. It 
> was due to the painted widget being created from external thread, i.e. 
> not from the Wt's thread.
>
> Some background: Our application does some things in another thread 
> and when something happens the UI is updated using WApplication's 
> UpdateLock. We are (currently) unable to get rid of the external 
> thread so dropping that is not an solution for us.
>
> There is example in the attached targz that should demonstrate the 
> issue. The application starts thread (you need Qt4 installed to run 
> this as I used QThread). The thread sleeps 2 seconds and then adds 
> PaintedW (a class inherited from WPaintedWidget) to the UI. This 
> causes the session to restart (I'm not completely sure if the browser 
> reloads the page and this causes the reload).
>
> In Makefile there is three different working example available for 
> compilation:
> WORKING_EXAMPLE1 changes the application to add the PaintedW 
> immediately to the UI
> WORKING_EXAMPLE2 changes the thread to add WText instead of PaintedW.
> WORKING_EXAMPLE3 removes the resizing of PaintedW and adds resize call 
> for the PaintedW
>
> You should enable only one of the WORKING_EXAMPLE macros at a time to 
> get the correct example compiled.
>
> BR,
> Janne
>
>
> On 4.10.2010 16:28, Koen Deforche wrote:
>>> With the real application I get the Wt session (?) to crash when I
>>> enable the size aware behaviour. I need to get an example for this
>>> behaviour.
>> A test case for that would be convenient !
>>
>> Regards,
>> koen
>>
>> ------------------------------------------------------------------------------
>>  
>>
>> Virtualization is moving to the mainstream and overtaking 
>> non-virtualized
>> environment for deploying applications. Does it make network security
>> easier or more difficult to achieve? Read this whitepaper to separate 
>> the
>> two and get a better understanding.
>> http://p.sf.net/sfu/hp-phase2-d2d
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to