Hi Eros,
I'll try attaching another snapshot. But the message says "THEN expected" and the line code displayed says "IF NOT FILE_EXISTS (FP) THEN" and the token found says "F".
George
1.jpg
Updated last BETA version
Download link is in the first post o this thread.
Sorry I cannot get useful info from the image.
Please post some compete code I can check.
IF/THEN/ENDIF checking has some rules, especially in single IF lines.
Maybe I missed something
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
Hi Eros,
I'll try attaching another snapshot. But the message says "THEN expected" and the line code displayed says "IF NOT FILE_EXISTS (FP) THEN" and the token found says "F".
George
1.jpg
Can you attach the thinBasic source code as a file here?
Or send it to me at support@thinbasic.com
I need to check the full file in binary/hex and see what's inside.
I've 2 suspects:
- there is some hidden char in the line that is disturbing the parser/tokenizer
The fact that the found token is just an "F" is a little strange- the NOT just after the IF is creating a math parsing problem
- if a retry works ... some internal thinBasic pCode generated by the pre-parsing process is wrong
Just tested the second suspect ... NOT after the IF ... in different ways and seems there are no problems
uses "console" if not FILE_Exists (APP_SourceFullName) Then printl "ok" end If WaitKey 0, "Press a key"
Last edited by ErosOlmi; 30-09-2025 at 07:12.
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
Thanks for checking Eros. I'm trying to chase the other half - SPFLite - since we have some other unexplained problems and I'm beginning to suspect a memory corruption problem since it's random and inconsistent. The nicest kind of bug to shoot. ;-((
George
Talking about that issue on SPFLite forum at https://spflite.freeforums.net/threa...scrollTo=12446
SPFLite uses thinBasic as internal macro language.
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
Updated thinBasic version 1.14
See first post of this thread for download link and list of changes
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