Posts: 2
Threads: 1
Joined: May 2019
20 May 2019, 11:31
(This post was last modified: 20 May 2019, 11:42 by BregoXX.)
Is it allowed to use urlRequest object in message thread?
It is required to check every frame url request status with WasFinished() or WasRejected().
How is it correct to use url request inside message thread?
Posts: 101
Threads: 35
Joined: Mar 2013
20 May 2019, 12:57
(20 May 2019, 11:31)BregoXX Wrote: Is it allowed to use urlRequest object in message thread?
It is required to check every frame url request status with WasFinished() or WasRejected().
How is it correct to use url request inside message thread?
UrlRequest should be used from the logic thread. The medods
WasFinished() and
WasRejected() should be checked every tick in the
OnProcessTick() or
OnFinishTick() method of the logic processor.
Posts: 2
Threads: 1
Joined: May 2019
22 May 2019, 8:08
(20 May 2019, 12:57)Ketschak Wrote: (20 May 2019, 11:31)BregoXX Wrote: Is it allowed to use urlRequest object in message thread?
It is required to check every frame url request status with WasFinished() or WasRejected().
How is it correct to use url request inside message thread?
UrlRequest should be used from the logic thread. The medods WasFinished() and WasRejected() should be checked every tick in the OnProcessTick() or OnFinishTick() method of the logic processor.
Ok.thanks.