Author Topic: "not defined" variable IS defined...  (Read 404 times)

0 Members and 1 Guest are viewing this topic.

Brian Alvarez

  • Hero Member
  • *****
  • Posts: 699
    • PluriBASIC
"not defined" variable IS defined...
« on: August 18, 2020, 02:47:50 am »
 Hello Charles, what could be causing this? (FREEFILE is also defined, a function)

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4486
    • Oxygen Basic
Re: "not defined" variable IS defined...
« Reply #1 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.

Brian Alvarez

  • Hero Member
  • *****
  • Posts: 699
    • PluriBASIC
Re: "not defined" variable IS defined...
« Reply #2 on: August 18, 2020, 03:36:38 am »
I placed it right before:

Code: [Select]
#recordof ff
ff = (FREEFILE())

Brian Alvarez

  • Hero Member
  • *****
  • Posts: 699
    • PluriBASIC
Re: "not defined" variable IS defined...
« Reply #3 on: August 18, 2020, 03:38:30 am »

Dont worry. I am probably doing something wrong. I will keep looking.

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4486
    • Oxygen Basic
Re: "not defined" variable IS defined...
« Reply #4 on: August 18, 2020, 05:26:38 am »
#recordof long

have you accidently redefined long ?

Brian Alvarez

  • Hero Member
  • *****
  • Posts: 699
    • PluriBASIC
Re: "not defined" variable IS defined...
« Reply #5 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?
« Last Edit: August 18, 2020, 05:59:19 am by Brian Alvarez »

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4486
    • Oxygen Basic
Re: "not defined" variable IS defined...
« Reply #6 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.