Forum Discussion
YMinaev
Staff
14 years agoHi,
A variable stores a reference to the target object. If the object is destroyed (you closed the window you keep in your variable), a reference to it gets broken. If you reopen the window, it is actually another object with another reference which has nothing to do with the previous one, and you need to reobtain it. As Robert said, using Name Mapping instead of global variables is a more robust approach.
A variable stores a reference to the target object. If the object is destroyed (you closed the window you keep in your variable), a reference to it gets broken. If you reopen the window, it is actually another object with another reference which has nothing to do with the previous one, and you need to reobtain it. As Robert said, using Name Mapping instead of global variables is a more robust approach.