Reply
31 May 2012
By: lydotnet Member 9 Posts
Level 1
Offline
Accepted Solution

HTTP GetResponse / BeginGetResponse update Listpanel

[ Edited ]
1 Reply 410 Views edited 31-05-2012

my english is pool :smileysad:

 

HTTP GetResponse  / BeginGetResponse  update Listpanel

 

update listpanel

private ListPanelItem ListItemCreator () { 

return new PanelItem(); // BeginGetResponse ERROR!  

}

 

 it's work good when i use HTTP GetResponse ( synchronization );

 

it's work brake everytime when i use HTTP BeginGetResponse ( Asynchronous );

 

error: Sce.Pss.Core.Graphics cannot be accessed by multiple theads

 

I think its create a new background thread when i use BeginGetResponse  ,so when i update the ui will be break....

   :smileysad:

Please use plain text.
Reply
0 Kudos
Message 1 of 2 (410 Views)
Reply
0 Kudos
Level 6
 

Re: HTTP GetResponse / BeginGetResponse update Listpanel

Hi lydotnet,

As the error message describes, you must do all of your GraphicsContext calls (whether that be through the UI Toolkit, GameEngine2D or straight to the GraphicsContext) on the same thread that the GraphicsContext was initialized.

If you'd like us to do a quick example, please let us know.

Thanks,
James
PlayStation®Mobile Dev Team
Please use plain text.
Reply
0 Kudos
Message 2 of 2 (355 Views)
Reply
0 Kudos