Page 1 of 1

APPCRASH tsNet-x86.dll

Posted: Fri Jul 24, 2020 3:53 pm
by ace16vitamine
Dear all,

I have a simple standalone which is opening a URL with tsNet. After some days the standalone crashes and I dont know why or what is going in wrong.

Any Ideas or are there any other problems known with this?

Thanks
Stefan

Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: Exporter.exe
Anwendungsversion: 0.9.0.2
Anwendungszeitstempel: 5ecd1f00
Fehlermodulname: tsNet-x86.dll
Fehlermodulversion: 0.0.0.0
Fehlermodulzeitstempel: 5e4a15c8
Ausnahmecode: c0000005
Ausnahmeoffset: 00037c85
Betriebsystemversion: 6.1.7601.2.1.0.274.10
Gebietsschema-ID: 1031
Zusatzinformation 1: 0a9e
Zusatzinformation 2: 0a9e372d3b4ad19135b953a78882e789
Zusatzinformation 3: 0a9e
Zusatzinformation 4: 0a9e372d3b4ad19135b953a78882e789

Re: APPCRASH tsNet-x86.dll

Posted: Sat Jul 25, 2020 6:48 pm
by jacque
Not enough info. What version of LiveCode? Does the URL access run inside a repeat loop? Can you post the relevant part of the script that uses TSNet?

Re: APPCRASH tsNet-x86.dll

Posted: Sat Jul 25, 2020 6:57 pm
by ace16vitamine
LC 9.6.0 Indy,

Script is running every 10 Minutes. I have tested it with

Code: Select all

put "Authorization: Basic" && base64Encode("XXXX:XXXX") into tHeader
   set the httpHeaders to tHeader
   put tHeader into tRequestHeaders
   
   put true into tSettings["use_ssl"]
   put "option=" & var_userid_read & "$*$" & var_passwort_read & "$*$" & var_json_file & "$*$" & var_lizenz_read & "$*$" & field "version" & "$*$" & the platform into tmyData
   put "https://blablabla/bla.lc" into tURL
   put tsNetPostSync(tUrl, tRequestHeaders, tmyData, tResponseHeaders, tResult, tBytes, tSettings) into errresult
      

Tested with Windows Server 2008 R2 and Windows 10.

Re: APPCRASH tsNet-x86.dll

Posted: Sun Jul 26, 2020 6:49 pm
by jacque
A crash that happens repeatedly after a period of time sounds like a memory problem. Are you running the requests using the "send in time" structure, or is the code you posted inside a repeat loop? It should be done using pendingMessages ("send in... <time>" to allow the engine to do garbage collection and general housekeeping.

Re: APPCRASH tsNet-x86.dll

Posted: Mon Jul 27, 2020 12:42 am
by ace16vitamine
Hi Jacqueline,

it is not in a repeat loop:

Code: Select all

if "startTimer" is not in the pendingMessages 
   then
      send "startTimer" to me in 600 seconds
   else
   end if
Regards
Stefan

Re: APPCRASH tsNet-x86.dll

Posted: Mon Jul 27, 2020 12:39 pm
by bangkok
You should try the new (coming) version of tsNet.

You can download it here :

https://quality.livecode.com/show_bug.cgi?id=22638

The bug described in this report (and the fix that was made) might be linked to the problem you face.