Author Topic: Getting an "Offset plus number of elements extends beyond.." reading BOOLARR[0]  (Read 607 times)

habadeer

  • Newbie
  • *
  • Posts: 5
    • View Profile
I am getting an "Offset plus number of elements extends beyond ..." when trying to read a single element from an array of boolean using the CLX read method. Oddly I wasn't getting this error using the 398t version.  This has only recently popped up in the 399x version.

The original call looked like this:
newVal = CLX.Read ("BOOLARR[0]");

I tried explicitly specifying the number of elements like this and got the same result:
newVal = CLX.Read ("BOOLARR[0]", 1)[0];

Any help is appreciated.

Update: Status Code = 255 (Not sure if that helps.)
« Last Edit: October 15, 2017, 04:52:33 PM by habadeer »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5261
    • View Profile
    • AdvancedHMI
How many elements do you have in your BOOLARR ?

I did a quick test with a 30 element bool array and haven't been able to replicate this.

habadeer

  • Newbie
  • *
  • Posts: 5
    • View Profile
So I must have something screwed up, but moving on from that, I have discovered a bigger problem.  I'll post separately if I cannot find a solution.

Thanks!