restore state, program state and bootstrap state

Home Forums General Programming restore state, program state and bootstrap state

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #72364
    human fly
    • Topics: 124
    • Replies: 1070
    • Total: 1194
    • ★★★★

    some more elementary questions:
    could someone offer some definition of these – i don’t know
    what ‘bootstrap’ means, for example -, and give a brief
    rundown of what happens as a panel loads (or a link to
    where this may have been discussed here)
    ie: the sequence of events, from intial ‘run’ of the program
    (or an instance etc.) up to the point where the panel/instance etc.
    is fully loaded and ready to use.

    i am using

    -- This stops issues during panel bootup
    if panel:getRestoreState() ==true or panel:getProgramState() ==true then return end

    wherever i want to prevent something from activating when the panel starts,
    (also see it without ‘==true’. i’m assuming that’s the same?) and see some
    variations on this, referring to bootstrap state, and also some methods
    doing things before the panel has loaded. so a quick rundown of these
    operations would be helpful. thanks.(layman’s version !! ;o) )

    • Topics: 45
    • Replies: 550
    • Total: 595
    • ★★★

    FYI, I’m just busy to make my first VST versions of my panels and had the problem that no Lua code was launched as dll. Spent the whole afternoon reading the forum about VST preparation.
    Found the issue then found different posts on the forum and adding the following info.

    I discovered that we should not have getProgramState() in the condition in the isPanelReady function.
    Removing that and thus only using
    if panel:getBootstrapState() == false and bPanelLoaded == true then
    solves the issue.

    I will search further in the forum about the meaning of getProgramState().
    All the startup phase of a panel is still a bit cryptic even if I understand it more and more.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Programming’ is closed to new topics and replies.
There is currently 1 user and 26 guests online
Forum Statistics
Threads: 2,460, Posts: 17,299, Members: 53,062
Most users ever online was 12 on January 22, 2019 3:47 pm
Do NOT follow this link or you will be banned from the site!