When I suspend a stack is save the current focused object and the current selection. Then on resume stack I restore it. That seems to work really well for me. The topStack should still be the topStack no matter what. Not sure why you need to reference the defaultStack.
Bob S > On Aug 9, 2017, at 09:08 , Paul Dupuis via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Has any one run into the following situation in LiveCode standalones? > > In a multiple window application, the user has either a standard window > or a modal dialog open (the topWindow which is also the defaultStack). > They navigate to a 3rd party application and by some means back to the > LC standalone and click a control in the topWindow (again either a > standard window or dialog) and that window is NO LONGER the defaultStack > so an execution error occurs on the first control referenced that is not > fully qualified. > > Obviously, I can fix this by fully qualifying all my object references > (i.e. instead of using fld "x", using fld "X" of stack "Y") but I am > curious is anyone else has seen anything like this? > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode