Breakpoint problem - how to get out of it?

Graham Samuel livfoss at blueyonder.co.uk
Fri Sep 19 13:46:00 EDT 2003


On Fri, 19 Sep 2003 07:47:30 -0600, Alex Rice <alex at mindlube.com> wrote:
At 12:04 -0400 19/9/03, use-revolution-request at lists.runrev.com wrote:
>
>On Friday, September 19, 2003, at 01:35  AM, Graham Samuel wrote:
>>  I do think this inability to have two stacks in RAM each called
>>  'myStack' or whatever is a weakness of RR. Really there should be more
>>  robust scope/naming rules, so that the name of every stack should IMO
>>  be in principle be in a domain defined by the name of the file it's in
>>  ('myStack' of 'myFile').
>
>I consider it an outright bug. It's just unacceptable to silently lose
>a substack, just because you open another stack and the author happened
>to use the same substack name as you.
>
>--> Bug #143, Opened in July <-- this bug needs votes
>
>However, I'm not sure how this relates to the breakpoint problem or
>your corrupt stacks :-)

It only relates to it insofar as it made my recovery process slightly 
more tortuous. I had to read in the 'corrupt' stack file and rename 
its mainstack and all its substacks; then I had to reproduce the 
structure of my app with the mainstack and substacks all having their 
original names, and then I had to copy over all the cards, scripts, 
properties etc. It worked (I was not sure that it would, because I 
had no way of knowing where the bad 'breakpoint' information resides 
- maybe in hidden properties or something). Anyway so far the 
rejuvenated app is working using RunRev 2.1.

The transfer process took about an hour I suppose, so I was glad my 
app wasn't any bigger. I admit that the renaming phase was trivial 
compared with the other stuff. I guess I could have written a program 
to do the recovery automatically, but it would have taken quite a 
time to debug.

However my main objection to the "can't have two stacks with the same 
name" restriction is the same as yours - if a library (however 
defined) just happens to contain a stack with a name I've already 
chosen for a stack in my main app, I'm in trouble. I do have one or 
two other suspicions about the way scoping works in runrev (for 
example, are object IDs unique or not?) - but I haven't done enough 
work on this to make an informed comment.

Graham
-- 
-------------------------------------------------------------------
          Graham Samuel / The Living Fossil Co. / UK & France



More information about the use-livecode mailing list