Home AMXForums Archive Threads Residential Forum

Run Code Errors

RicardoSiqueiraRicardoSiqueira Junior MemberPosts: 373
I am getting the errors below repeatedly on a system. Is there a way to know where the error is coming from? I do have duet modules in m y system (Autopatch, Integra DTR). Any ideas?


1: 02-19-2013 TUE 18:08:59 Interpreter
RunCode - Address Mismatch 0x4050 0x00184A 0x00184C
2: 02-19-2013 TUE 18:08:59 Interpreter
GetNumber - Error 1 Tk=0x0000
3: 02-19-2013 TUE 18:08:59 Interpreter
DoNumberExpression - Error 2 Tk=0x2008
4: 02-19-2013 TUE 18:08:59 Interpreter
Ref Error ? Index 0

Comments

  • DHawthorneDHawthorne Junior Member Posts: 4,584
    Not that I'm aware of. If you have a revision without the errors, you can backtrack and add your changes back in until it recurs so you know what code is causing it. If you don't know when it was introduced, all you can do is comment stuff out until it goes away and try to isolate it like that. It looks to me like the kind of error you would get when a module calls for a parameter of a specific variable type, and you are calling it with another type.
  • cwpartridgecwpartridge AMX Engineering Posts: 120
    If you compile with debug info (Settings->Preferences->NetLinx Compiler->Compile With Debug Info) it may enable some file/line info. I know it is not always great insight, but it may help.
  • DHawthorneDHawthorne Junior Member Posts: 4,584
    If you compile with debug info (Settings->Preferences->NetLinx Compiler->Compile With Debug Info) it may enable some file/line info. I know it is not always great insight, but it may help.

    My experience is even with debug info on, many errors do not generate a line number or any other indication where the problem came from. And when it does, they are often not accurate. Almost always, they are at least a line or two off, and sometimes they aren't even in the ballpark (if you use INCLUDE files). It's more than rather flawed.
  • jjamesjjames AMX Sustaining Engineer Posts: 2,901
    I am getting the errors below repeatedly on a system. Is there a way to know where the error is coming from? I do have duet modules in m y system (Autopatch, Integra DTR). Any ideas?


    1: 02-19-2013 TUE 18:08:59 Interpreter
    RunCode - Address Mismatch 0x4050 0x00184A 0x00184C
    2: 02-19-2013 TUE 18:08:59 Interpreter
    GetNumber - Error 1 Tk=0x0000
    3: 02-19-2013 TUE 18:08:59 Interpreter
    DoNumberExpression - Error 2 Tk=0x2008
    4: 02-19-2013 TUE 18:08:59 Interpreter
    Ref Error ? Index 0

    Is this happening constantly & flooding diagnostics? Or just sporadically?

    If it's flooding your diagnostics window, check define_program and look for arrays. Most likely a variable is set to zero. If it's sporadic, you'll need to try to find what triggers it by hitting buttons and running it through the ringer. My guess is it's an index to a device array.
Sign In or Register to comment.