Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / HTTP ID 10001 does not exist

Author
Message
Kobaltic
12
Years of Service
User Offline
Joined: 24th Jan 2012
Location: PA, USA
Posted: 24th Mar 2013 02:35 Edited at: 24th Mar 2013 14:38
[Resloved]
OK I set up a simple command to send a 1 to my server. I call the function change() to send the information. If I call this prior to the loop it works fine. If I call the function after I click a pic I get this error: Failed to send HTTP async request, HTTP ID 10001 does not exist at line 77 in root. I can't figure out why it works when I just call it but not when I call it from a touch.

xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 24th Mar 2013 03:01
In your code, you create the HTTP Connection before the loop but delete it the first time the response is returned. You never reestablish the connection so any subsequent call to change() after the initial one will throw an error. If you move the two lines for creating the connection into the create() function then a new HTTP object will be created whenever that function is called.

Also, at least in the code you provided fireballcard is not assigned any value, so hit = fireballcard at all times and so the create() function is getting called every loop, as well as at the start of the app.
Kobaltic
12
Years of Service
User Offline
Joined: 24th Jan 2012
Location: PA, USA
Posted: 24th Mar 2013 03:37
Thanks. for the help. I do have fireballcard assigned. I didn't want to bog down the post with code not relevant to the problem.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 24th Mar 2013 07:28
its better you clear unused variables because they are invalid.
DeleteHTTPConnection(httpconn)
httpconn=0
Kobaltic
12
Years of Service
User Offline
Joined: 24th Jan 2012
Location: PA, USA
Posted: 24th Mar 2013 14:11
Thanks Markus I caught one of them but missed that one.

Login to post a reply

Server time is: 2024-05-08 02:00:53
Your offset time is: 2024-05-08 02:00:53