Dbasic crashes on bad code

Discussion in 'Bug Reports' started by agraham, Nov 10, 2007.

  1. agraham

    agraham Expert Licensed User

    If you have a global variable and a sub of the same name and reference the variable in the sub then Dbasic crashes without emitting a warning.

    Sub Globals
    'Declare the global variables here.
       fred = true
    End Sub

    Sub App_Start
    End Sub

    Sub fred
       fred = 
    End Sub
    This had me panicking for a while - the code that started doing it to me was not quite as straightforward as the fragment above that I distilled the problem down to.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Thank you for posting this bug.
    It will be fixed in the next release.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice