Results 1 to 4 of 4

Thread: Mystery! CJSon module crashes on one system, works fine on other.

  1. #1

    Mystery! CJSon module crashes on one system, works fine on other.

    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?

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,814
    Rep Power
    10
    Ciao,

    quite difficult to understand. thinBasic CJSon module is based on the following library https://github.com/DaveGamble/cJSON but seems there is no limitation about CPU type.

    What version of thinBasic are you using?
    Just in case ... please download latest I'm working on from here: https://www.thinbasic.com/projects/t...0_20231228.zip
    See if with this version it makes any difference.

    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Quote Originally Posted by ErosOlmi View Post
    Ciao,

    quite difficult to understand. thinBasic CJSon module is based on the following library https://github.com/DaveGamble/cJSON but seems there is no limitation about CPU type.

    What version of thinBasic are you using?
    Just in case ... please download latest I'm working on from here: https://www.thinbasic.com/projects/t...0_20231228.zip
    See if with this version it makes any difference.

    Eros
    Well, I was using the version at the top of the download page, 1.11.7.0 BETA.

    The version in the link you supplied got it working. All the sample scripts work now. My own script as well. Couldn't be happier. Thank you!!


    I've been converting some of my Autohotkey scripts to ThinBasic. The code is so much easier to comprehend & logical.

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,814
    Rep Power
    10
    Great!

    I was not sure new version would have solved the problem, I didn't remember any crash on that module.
    Version you downloaded has a lot of new feature I'm finishing and finalize to version 1.12 that will be out by Jan 24

    If you need anything else, just ask.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. GitHub - mystery or meh?
    By Petr Schreiber in forum thinBasic General
    Replies: 15
    Last Post: 09-01-2017, 19:35
  2. Mystery Curve
    By primo in forum TBGL General
    Replies: 1
    Last Post: 10-04-2016, 12:01
  3. A dynamic particle system using Eval module
    By ErosOlmi in forum YouTube
    Replies: 0
    Last Post: 04-02-2007, 19:08

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •