Anytime Help Center

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support
  • Guest
  • Log In
English (US)
US English (US)
DE German
CN Chinese
MX Spanish (Mexico)
Chinese (Simplified)
  • AKG
    Microphones Wireless Integrated Systems Automatic Mixers Headphones Discontinued Products (AKG) General AKG Inquiries Certifications (AKG)
  • AMX
    Networked A/V Distribution (AVoIP) Traditional A/V Distribution Video Signal Processing Architectural Connectivity User Interfaces Control Processing Power (AMX) Programming (AMX) Software (AMX) Discontinued Products (AMX) General AMX Inquiries Certifications (AMX)
  • BSS
    Soundweb™ Omni Soundweb™ London Soundweb™ Contrio™ Software (BSS) Discontinued Products (BSS) General BSS Inquiries Certifications (BSS)
  • Crown
    CDi DriveCore Series CDi Series Commercial Series ComTech Series DCi DriveCore Series I-Tech HD Series XLC series XLi Series XLS DriveCore 2 Series XTi 2 Series Discontinued Products (Crown) Software (Crown) General Crown Inquiries Certifications (Crown)
  • dbx
    CX Series 500 Series DriveRack Personal Monitor Control ZonePRO Zone Controllers FeedBack Suppression Microphone Preamps Dynamics Processors Crossovers Equalizers Software (dbx) Discontinued Products (dbx) General dbx Inquiries Certifications (dbx)
  • Flux::
    Immersive Processing Analysis Subscriptions
  • JBL
    Cinema Sound Installed Live Portable Tour Sound Recording & Broadcast Software (JBL) Discontinued Products (JBL) Video Manual Series (JBL) General JBL Inquiries Certifications (JBL)
  • Lexicon
    Plugins Effects Processors Cinema Discontinued Products (Lexicon) Video Manual Series (Lexicon) General Lexicon Inquiries Certifications (Lexicon)
  • Martin
    Atomic ELP ERA Exterior MAC P3 VC VDO Tools Discontinued Products (Martin) General Martin Inquiries Certifications (Martin)
  • Soundcraft
    Digital Analog Connected Analog Only Discontinued Products (Soundcraft) Video Manual Series (Soundcraft) General Soundcraft Inquiries Certifications (Soundcraft)
  • General HARMAN Inquiries
    Dante
+ More
  • Home
  • AMX
  • Programming (AMX)
  • Programming

AMX NetLinx Runtime Error Assign Stack Ref Error - Out of Range

Technical Support Guide

Written by Jose Liberio Cruz

Updated at February 9th, 2026

Table of Contents

Symptoms Cause Resolution Downloads:

Symptoms

Code compiles fine, but when you run it you get the error:

  • Assign Stack Ref Error - Out of range

You may also see other errors like:

  • CHeap::Delete - ERROR(2) Attempting to delete invalid block 00AE6024 (Task=tInterpreter)
     
  • DoNumberExpression - Error 2 Tk=0x2008
     
  • GetNumber - Error 1 Tk=0x0000

 

Cause

Having a SWITCH/CASE statement inside a WAIT:

DEFINE_VARIABLE

X

DEFINE_CALL 'Switch Case In A Wait' (X)

{

WAIT 20

{

X++

IF (X > 2)

X = 0

SWITCH (X)

{

CASE 2:

SEND_STRING 0,FORMAT('SWITCH 2, X = %d',X)

CASE 1:

SEND_STRING 0,FORMAT('SWITCH 1, X = %d',X)

DEFAULT:

SEND_STRING 0,'DEFAULT'

}

}

}

DEFINE_PROGRAM

CALL 'Switch Case In A Wait' (X)

// end

 

Resolution

Modify the code so it uses a SELECT/ACTIVE statement instead:

DEFINE_VARIABLE

X

DEFINE_CALL 'Select Active In A Wait' (X)

{

WAIT 20

{

X++

IF (X > 2)

X = 0

SELECT

{

ACTIVE (X = 2):

SEND_STRING 0,FORMAT('SWITCH 2, X = %d',X)

ACTIVE (X = 1):

SEND_STRING 0,FORMAT('SWITCH 1, X = %d',X)

ACTIVE (1):

SEND_STRING 0,'DEFAULT'

}

}

}

DEFINE_PROGRAM

CALL 'Select Active In A Wait' (X)

// end​


Downloads:

  • https://static.helpjuice.com/helpjuice_production/uploads/upload/image/26287/direct/1770674751082/736-NetLinx%20Runtime%20Error%20Assign%20Stack%20Ref%20Error%20-%20Out%20of%20Range.pdf

Related Videos

runtime error

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Symptoms Cause Resolution Downloads:

Related Articles

  • AMX - Default Settings, User names and Passwords for for many AMX Products

Related Articles

  • AMX - Default Settings, User names and Passwords for for many AMX Products
Copyright © HARMAN Professional. All rights reserved. Privacy Policy | Terms of Use
Expand