MemoryBlock mb2:setByte(0,mb1:getByte(0)) crash

Home Forums Development Change requests MemoryBlock mb2:setByte(0,mb1:getByte(0)) crash

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #71932
    Mr.ToR
    Participant
    • Topics: 7
    • Replies: 51
    • Total: 58

    Dear Atom,

    The following code crashes Ctrlr.
    I have tried with v5.3.198 and v5.3.163 on OSX 10.10.5

    local data = MemoryBlock()
    data:loadFromHexString(MyModulator:getProperty(“uiLabelText”))
    local NewData = MemoryBlock()

    — NewData:append(data:getRange(0,1)) — this works without problem
    NewData:setByte(0,data:getByte(0)) — this crashes everytime.

    HexString = NewData:toHexString(1)
    utils.infoWindow(tostring(NewData:getSize()),HexString)

    Am I doing something wrong here or is there a bug?

    Actually I just need to assign a Byte from one mb to another but also need to change that Byte (as in adding a 1 to it) before assigning to new mb.

    Thnx.

Viewing 1 post (of 1 total)
  • The forum ‘Change requests’ is closed to new topics and replies.
There is currently 0 users and 50 guests online
No users are currently active
Forum Statistics
Threads: 2,495, Posts: 17,374, Members: 77,605
Most users ever online was 12 on January 22, 2019 3:47 pm
Ctrlr