I have two Windows 10 Pro 64bit systems running with ThinBasic installed on each.
One is running on an AMD AMD A8-7600 CPU with 16gb RAM
The other is a Pentium(R) Dual-Core CPU (E5200 @ 2.50GHz) with 4gb RAM
The Pentium(R) Dual-Core system is the troublemaker. I can run all of the cjson scripts in 'SampleScripts' on the AMD system with no problems. ALL of them crash & exit when run on the Pentium system.
For example...
cjson_SalesOrder.tbasic crashes when it gets to this line: pOrder = cJSON_Parse(Load_File(APP_SourcePath & "cJson_SalesOrder.json"))
The four other sample scripts crash at the line: printl "Internal cJSon version.......:", cjson_version
Since I am trying to work with some json format data that I have downloaded (some weather statistics), I put together a tiny test script.
Uses "Console", "cjson"
Dim WXjson As New CCJson("C:\temp\WXjson.json")
printl "OK"
waitkey
This script works fine on my AMD system, but crashes on the Pentium system at this line: Dim WXjson As New CCJson("C:\temp\WXjson.json")
By 'crashes', I mean that the console window or the ThinDebug window just closes at that point. There are no error messages, etc.
I'm stumped as to what the glitch could be. Is there something about the older Pentium that could be incompatible with the cjson module?
Bookmarks