Page 1 of 1

LC 8.1.1 Indy and Community 8.1.2 rc 1 standalone issue

Posted: Thu Nov 24, 2016 3:26 pm
by rippertoews
I have the code below running every 10 minutes and it works fine in the IDE - however when I create a standalone application in either community or indy version - it's like it doesn't connect to the network and it doesn't get the public ip anymore.. I tried allowing everything through windows firewall and uninstalled my antivirus but that didn't fix the issue - I'm running Windows 10 pro 64bit Version 10.0.14393 Build 14393.

Any idea's?

Thanks,
Jason

Code: Select all

on GetPublicIP
   //clear date and time on form
   put empty into field "lastupdate"
   
   //url https://api.ipify.org/?format=json
   send "GetPublicIP" to me in 600 seconds
   get URL "https://api.ipify.org/?format=json"
   put it into tPublicJson
   put JSONToArray(tPublicJson) into tPublicIP
   put tPublicIP["ip"] into tIP

   set the cp_ipaddr of me to tIP
    call PostToSite
   
end GetPublicIP

on PostToSite
   put the cp_ipaddr of me into tIP
   put "ipaddress=" & URLEncode(tIP) into tPostdata
   post tPostdata to URL "http://myserver.com/myfile.lc"
   
   //update form
   put the short date && the long time into field "lastupdate"
   
end PostToSite

Re: LC 8.1.1 Indy and Community 8.1.2 rc 1 standalone issue

Posted: Thu Nov 24, 2016 5:29 pm
by bangkok
sounds like you have a problem with "inclusions".

you should check your "standalone application settings".

question : for which OS you build your app' ?

other question : why you don't use the new JSON library :

Code: Select all

put JsonImport(pJson) into myArray
?

Re: LC 8.1.1 Indy and Community 8.1.2 rc 1 standalone issue

Posted: Thu Nov 24, 2016 7:40 pm
by rippertoews
I'll check my settings; I build it for windows - thanks for telling me about the new library! I tried this in Indy 7.1.2 (with some Json changes) and it works flawlessly...