Hello,
last day's i try to realize the following example. Maybe anyone can help me / explain me, how i can bring this to life.
sub class_globals
private httpstate as int
end sub
sub jobdone(...)
httpstate = 2
end sub
sub button_click()
http.init...
httpstate = 1
http.download("http://foo.bar/")
do while true
if httpstate = 2 then exit
loop
end sub
my problem is, that the http download request will first start, if the button sub exited.
So, i try a solution with a thread. i init and call te http download inside of a thread sub, but i have the same effect.
with the threaded variant i got a strange log message: "sending message to waiting quese of uninitialized activity (submitjob)" ... but, i don't know what this mean. i don't have a sub or activity like this name. So, my only idea was, that the http needs an activity that not exist / cant create out of a thread.
i get the "service (httputils2service) Create" and "... Start" after existing the _click too.
So, how i realize a "function call" with http and a loop for "return-check"?
THX!
JimJim
XUN