DISABLE MULTI DOCUMENT PANELS

Home Forums General Programming DISABLE MULTI DOCUMENT PANELS

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26554
    kamder
    Participant
      • Topics: 9
      • Replies: 13
      • Total: 22

      hello ATOM , i want to disable multidocuments due to RAM overflow in my DAW when i switch preset in the CTRLR audio unit version (if i switch presets 100 times in the daw automation , ctrlrAU load 100 documents (panels) !!!!!)
      example :

      i have find this WAY by adding a line in CTRLRmanager.cpp
      BUT lua methods cause daw crash in presets switching/saving/loading
      if you have a method to disable multi documents or for temporarly disabling lua methods running when i send the close all documents function
      IT CAN BE GREAT !!!! THANK YOU !!!! :

      void CtrlrManager::addPanel (CtrlrPanelEditor *panelToAdd)
      {
      ///////KAMDERPANEL_ADD_THIS////WORKING_OK///BUT CRASHES SOMETIMES WITH LUA ENABLED//////////////////////////////////////////////////////////////////
      ctrlrDocumentPanel->closeAllDocuments(false);
      /////////////////////////////////////////////////////////////////////////
      ctrlrDocumentPanel->addDocument ((Component *)panelToAdd, Colours::lightgrey, true);
      }

      NOTE : THE DAW DO NOT CRASH IF I DISABLE LUA METHODS , BUT I USE LUA FOR SEVERAL FUNCTIONS IN MY PANEL ……….

      NOTE2 : I HAVE ALSO TRIED your export instance and restricted instances functions but no changes , the multi documents system is enabled also….

      EDIT : FINALLY RESOLVED THE ISSUE , if the lua methods are not linked correct (code with no target (deleted groups or knobs …) , the method is displayed in red at load (but if recompiled it’s OK !!!!!!..0_0….!!!!) ) the daw crash in the preset saving menu ) if the methods linked OK , the daw do not crash (logic 9 )

      THIS HAPPEN ONLY IF I USE THE LOGIC 9 PRESET MANAGER OFF THE AUDIO UNIT , if i use save panel menu , the things are OK 100% (exept if i manipulate the concerned method it can crash sometimes randomly …)

      • This topic was modified 9 years, 9 months ago by kamder.
      • This topic was modified 9 years, 9 months ago by kamder.
      • This topic was modified 9 years, 9 months ago by kamder.
      • This topic was modified 9 years, 9 months ago by kamder.
      • This topic was modified 9 years, 9 months ago by kamder.
      • This topic was modified 9 years, 9 months ago by kamder.
      • This topic was modified 9 years, 9 months ago by kamder.
    Viewing 1 post (of 1 total)
    • The forum ‘Programming’ is closed to new topics and replies.
    There is currently 0 users and 89 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