Problem with midiMessageReceived

Home Forums General Programming Problem with midiMessageReceived

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #416
    dasfaker
    Keymaster
      • Topics: 80
      • Replies: 793
      • Total: 873
      • ★★★

      Ctrlr crashes when my panel receives a midi dump. Exactly when it reaches this line:
      programData = midiMessage:getLuaData():getRange(09,514)

      I’m running revision 677 Nightly on Windows XP. With revision 632 it works fine.

      #3137
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        well that most likely means that you are trying to reach beyond the data in the buffer and you are crashing Ctrlr, it’s not something i can help you with. verify the buffer size before you access it (it should be at least 514+9+1 bytes long from what i see)

        #3138
        dasfaker
        Keymaster
          • Topics: 80
          • Replies: 793
          • Total: 873
          • ★★★

          Thx for your fast reply <img decoding=” title=”Wink” />

          Yes, the buffer size is 524. I’ve tried accesing data from the beggining of the dump, from the middle, reducing the range to avoid what you say and still crashes. And as I said before, the same dump works with the same code in a previuos Ctrlr version (632), it receives the dump and assign each byte to each modulator, so ranges must be ok. Something must have changed from this version to 677.

          #3139
          netchose
          Participant
            • Topics: 15
            • Replies: 70
            • Total: 85

            i’ve noticed the same problem with revison 677

            rev650 OK

            #3140
            atom
            Keymaster
              • Topics: 159
              • Replies: 2945
              • Total: 3104
              • ★★★★★

              i found the bug, it’s fixed the next build will work.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 67 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