Oxygen Basic

Programming => Problems & Solutions => Topic started by: Brian Alvarez on August 18, 2020, 02:47:50 AM

Title: "not defined" variable IS defined...
Post by: Brian Alvarez on August 18, 2020, 02:47:50 AM
 Hello Charles, what could be causing this? (FREEFILE is also defined, a function)
Title: Re: "not defined" variable IS defined...
Post by: Charles Pegge on August 18, 2020, 03:24:00 AM
#recordof ff

will display the details of ff at o2 compile-time. Very useful for tracing corrupted definitions.
Title: Re: "not defined" variable IS defined...
Post by: Brian Alvarez on August 18, 2020, 03:36:38 AM
I placed it right before:

Code: [Select]
#recordof ff
ff = (FREEFILE())
Title: Re: "not defined" variable IS defined...
Post by: Brian Alvarez on August 18, 2020, 03:38:30 AM

Dont worry. I am probably doing something wrong. I will keep looking.
Title: Re: "not defined" variable IS defined...
Post by: Charles Pegge on August 18, 2020, 05:26:38 AM
#recordof long

have you accidently redefined long ?
Title: Re: "not defined" variable IS defined...
Post by: Brian Alvarez on August 18, 2020, 05:40:49 AM
No, not this time. But the error dissapeared when i modified another part of the program. I Suspect it was a stray parenteses i was incorrectly generating.

Edit:

Charles, i tracked it to the following statement. I was generating an extra closing parenteses (4 instead of 3 just before the last &) and that had repercutions few statements ahead.

Code: [Select]
    LONG ff
'        [...]
        filename = (TRIM$(PATHNAME$(2, TRIMMED$(EXE.chr(@comp, 37333, 255))), 1, ("/\ " & CHR$(byte {-1, 0, -1, 32}, countof))) & "\" & PATHNAME$(3, TRIMMED$(EXE.chr(@comp, 37333, 255)))) & ".RC")
'        [...]
            ff = (FREEFILE())

 Oxygen is finally compiling PluriBASIC's for 64bit... I mean, it finishes with no errors, but i am getting no output. No executable or DLL is generated. No error reports or anything.

 It takes 55 Seconds...

 I feel i am so close... It finally compiles ALL of the statements, pointers, ASM, TYPES... very complex macros, arrrays...  all the complex stuff!! All 82778 very complex lines of code...

 But no output... no clues. It is correctly compiling complex stuff 1/10 the size of this, but not this big one.

What can i try?
Title: Re: "not defined" variable IS defined...
Post by: Charles Pegge on August 18, 2020, 06:47:04 AM
It could be a silent GPF (Windows 10).

My approach would be to split the code down to isolate the problem.