Errors

If the compiler in Ultra Fractal determines a syntax error or a type error in a formula file, it halts and an error message is displayed. You should correct the error and recompile the formula.

Here is a list of all possible errors to assist you in correcting the problem that caused the error message:

  • $ELSE after $ELSE is not allowed
  • $ELSE without $IFDEF is not allowed
  • $ENDIF expected after $IFDEF
  • $ENDIF without $IFDEF is not allowed
  • ‘)’ expected
  • ‘,’ or end of line expected
  • ‘]’ expected
  • ‘|’ expected
  • ‘=’ expected
  • Argument type expected
  • Call to non-const global function not allowed here
  • Cannot cast this expression
  • Cannot find class declaration
  • Circular inheritance is not allowed
  • Circular parameter usage is not allowed
  • Constant expression expected
  • Declaration not allowed here
  • Duplicate function declaration
  • Duplicate variable declaration
  • Dynamic array variable expected
  • ELSE before IF is not allowed
  • ELSE or ELSEIF after ELSE is not allowed
  • ELSEIF before IF is not allowed
  • ENDFUNC before FUNC is not allowed
  • ENDFUNC expected after FUNC
  • ENDHEADING before HEADING is not allowed
  • ENDHEADING expected after HEADING
  • ENDIF before IF is not allowed
  • ENDIF expected after IF
  • ENDPARAM before PARAM is not allowed
  • ENDPARAM expected after PARAM
  • ENDWHILE before WHILE is not allowed
  • ENDWHILE expected after WHILE
  • Enumerated parameter expected
  • Expression expected
  • Field or method declaration expected
  • Field or method is not accessible
  • Field or method name expected
  • Function expected
  • Global variables are read-only here
  • Identifier expected
  • Illegal assignment for const function
  • Imported file not found in search paths
  • Incompatible types
  • Initial label expected
  • Invalid array reference
  • Invalid character encountered
  • Invalid compiler directive
  • Invalid complex literal format
  • Invalid constructor declaration
  • Invalid function
  • Invalid label encountered
  • Invalid method override
  • Invalid number of function arguments
  • Invalid parameter
  • Invalid predefined symbol
  • Invalid setting
  • Invalid value for this enumerated parameter
  • Keyword not allowed here
  • Label only consisting of a colon is not allowed
  • Label or ‘}’ expected
  • Literal expected
  • Literal out of range
  • MIN value is larger than MAX value
  • Nesting of FUNC is not allowed
  • Nesting of HEADING is not allowed
  • Nesting of PARAM is not allowed
  • Operator expected
  • PARAM expected after type keyword
  • Parameters are not allowed here
  • Parameters are read-only in global sections
  • Parameters are read-only inside functions
  • Predefined symbol is not readable
  • Predefined symbol is not writeable
  • Return expression expected
  • Return expression not allowed
  • RETURN not allowed outside function
  • Setting identifier expected
  • Static or inherited method expected
  • String value expected
  • Syntax error in literal number
  • This expression cannot be assigned to
  • Unterminated string (” expected)
  • UNTIL before REPEAT is not allowed
  • UNTIL expected after REPEAT
  • Variable expected
  • Variable must be declared first

There are also several run-time errors that can occur when a formula is executed. Some of these can only occur if the DEBUG symbol is defined. The run-time errors report invalid conditions that could not be detected at compile time:

  • Arrays are not compatible
  • Array index out of bounds
  • Null object reference access
  • Out of memory
  • Stack overflow
  • Storage exceeds 2 GB

See Also
Debugging
Warnings

Errors