Error with memoryBlock:removeSection

Home Forums General Programming Error with memoryBlock:removeSection

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

      On previous revisions I had this code working fine, now I get an error message.

      bankData = MemoryBlock()
      file1:loadFileAsData(bankData)
      bankData:removeSection (bankData:getSize()-3, 4)
      ERROR: No matching overload found, candidates:
      void removeSection(MemoryBlock&,custom [unsigned __int64],custom [unsigned __int64])
      #35494
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        need to have a look maybe something changed in JUCE

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

          Yeah juce got changed and now it uses size_t for it’s variables, and those can be 64bit integers in some cases and those don’t play well with lua. I wrapped this method in my own call that will work, if there will be any more changes like that, more stuff can break.

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