restore state, program state and bootstrap state

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

This topic contains 1 reply, has 2 voices, and was last updated by goodweather goodweather 1 month, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #72364

    human fly
    Participant
    • Topics: 123
    • Replies: 1057
    • Total: 1180
    • ★★★★

    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) )

    #115528
    goodweather
    goodweather
    Participant
    • Topics: 40
    • Replies: 392
    • Total: 432
    • ★★

    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)

You must be logged in to reply to this topic.

There is currently 0 users and 34 guests online
No users are currently active
Forum Statistics
Threads: 2,241, Posts: 15,791, Members: 55,954
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!