Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: thinBasic Beta 1.9.7.0

  1. #21
    Junior Member porcelain_tree's Avatar
    Join Date
    Nov 2012
    Location
    Beausejour, Manitoba, Canada
    Posts
    14
    Rep Power
    13
    Thanks for the extra info.

    I haven't gotten to the crash code yet. The crash happens much later than I expected, so I set a breakpoint at what seems to be the guilty function, which I call Play(). It handles init of a channel and starts playback. BUT ...

    I'm dealing with another issue: the debug module is enforcing assignment of the error code to a variable in the INI_SETKEY command. That is, it throws an "expecting a =" error. I assume that means I have to reform those lines to

    local succeed as dword
    succeed = INI_SETKEY(blah blah blah)

    Only debug in 1.9.7.0 enforces this. I know that it's good practice to check these sorts of actions, but I think this requirement is excessive.

    But anyway, I'll fix it and eventually get to my crash condition.

  2. #22
    John,

    please stay on topic and and only that.

    Michael

  3. #23
    Junior Member porcelain_tree's Avatar
    Join Date
    Nov 2012
    Location
    Beausejour, Manitoba, Canada
    Posts
    14
    Rep Power
    13
    John, no offense, but I don't understand any part of your comment.

    My issues only appear in Beta 1.9.7.0, so naturally I thought this was the place to discuss them. But in any case, Rene told me enough to help me.

  4. #24
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,525
    Rep Power
    170
    Quote Originally Posted by porcelain_tree View Post
    ...
    I'm dealing with another issue: the debug module is enforcing assignment of the error code to a variable in the INI_SETKEY command. That is, it throws an "expecting a =" error....
    Only debug in 1.9.7.0 enforces this..
    INI_SetKey takes an optional default-value-parameter - if this line in your code already has parenthesis around the parameters you might check the codeline directly above this - I can imagine there's another call to some function that takes an optional parameter so the line you want to change is not the one that causes the error- but the line above...


    Where are my manners? Welcome and Happy Coding!
    I think there are missing some Forum-sections as beta-testing and support

  5. #25
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    If the code is not private, you could upload it here and I could check the possible cause of error.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  6. #26
    Junior Member porcelain_tree's Avatar
    Join Date
    Nov 2012
    Location
    Beausejour, Manitoba, Canada
    Posts
    14
    Rep Power
    13
    Sorry guys, a lot has happened in my life and I forgot about this thread.

    I finally found the cause. I was calling a function and assigning its value like this:

    x = my_function

    when the proper syntax is:

    call my_function to x

    After I changed my code, my program runs fine in all of the more recent versions of thinBasic. For some reason the older version accepted and used my original syntax without any errors.

    Thanks for the help.

  7. #27
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    x = my_function should be absolutely valid.

    Can you please post a little bit more of your not working code?
    Or create a little script reproducing the problem?

    I need to see how my_function is declared.

    Thanks a lot
    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

  8. #28
    Junior Member porcelain_tree's Avatar
    Join Date
    Nov 2012
    Location
    Beausejour, Manitoba, Canada
    Posts
    14
    Rep Power
    13
    Ah, interesting. Man, I hope I didn't change hundreds of function calls for no good reason. (My media player is over 12,000 lines of code.)

    Okay, thanks, I'll find a section that I can use for a sample script and post it here. It might take a day or so.

  9. #29
    Junior Member porcelain_tree's Avatar
    Join Date
    Nov 2012
    Location
    Beausejour, Manitoba, Canada
    Posts
    14
    Rep Power
    13
    I apologize, Eros, I can't replicate the crashes. I'm completely baffled. I must have fixed the real problem without realizing it.

  10. #30
    Junior Member porcelain_tree's Avatar
    Join Date
    Nov 2012
    Location
    Beausejour, Manitoba, Canada
    Posts
    14
    Rep Power
    13
    To clarify, older versions of my program still crash in all of the betas. It's not something I imagined.

    To try to replicate the crashes, I used a newer version and changed the function calls back to "x = my_function." It's this version that doesn't seem to crash on the function calls. I changed something to fix that issue, apparently.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Beta testing thinBasic Beta 1.9.5.0
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 4
    Last Post: 18-04-2013, 13:28
  2. thinBasic Beta 1.9.4.0
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 15
    Last Post: 26-03-2013, 18:45
  3. thinBasic beta 1.8.5.0
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 1
    Last Post: 06-07-2010, 05:43
  4. thinBasic beta 1.7.10.1
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 11
    Last Post: 08-02-2010, 07:09
  5. thinBasic beta 1.7.9.0
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 3
    Last Post: 25-08-2009, 13:58

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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