"expecting end-of-file" error causes ?

Blitz3D Forums/Blitz3D Beginners Area/"expecting end-of-file" error causes ?

RemiD(Posted 2016) [#1]
Hello, :)

When i try to build and run my code, i get an "expecting end-of-file" error

Normally i manage to find the error in my code but this time, even after several rereadings, i still don't find the error...
And the line it directs to seems correct...

I know that this error can be caused by a missing/incorrect symbol or by a missing parameter in a function.
What else can cause this error ?

Thanks,


Bobysait(Posted 2016) [#2]
Look for an unclosed stuff
-> If-EndIf
-> For-Next
-> While-Wend
-> Repeat-Forever/Until

if one is missing then the compiler will reach the end of file thinking there is something missing.


RemiD(Posted 2016) [#3]
Thanks, but it does not seem to be that... If you have others suggestions...


RemiD(Posted 2016) [#4]
found it, (idiot issue)

i had a global reference to store a mesh
global Thing_Mesh = createmesh()


and then i added a dim array to store several meshes
global ThingsCount%
dim Thing_Mesh(10)


but like an idiot i modified the code like this :
global Thing_Mesh(I) = createmesh()


...


Bobysait(Posted 2016) [#5]
Curious, it should have generated a "syntax error"