HomeForumResearchGuide
Sign in to reply to forum posts.
Static state across the same component loaded multiple times

hi, I think things are starting to make sense, thanks for the help so far.

I'm starting to get to the adaptive part of my project and I wanted to check on global static state. I know I can load the same component twice and swap from one to the other e.g if I'm doing a code upgrade.

When I load the same component more than once is their global static state completely separate?

thanks

jess

Hi Jess,

Each loaded component has its own memory space, including its static global variables, so they would be completely separate even it's the "same" component that is loaded into memory twice.

Barry

Ok, so it's safe to do this without any state interference effects. Thanks!

jess