Stacks getting contaminated with other stacks

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Judson
Posts: 26
Joined: Fri May 07, 2010 9:15 pm

Stacks getting contaminated with other stacks

Post by Judson » Sat Jul 31, 2010 9:17 pm

From time to time now one of the "start using..." stacks ends up getting contaminated with one of the production stacks.

What I mean is that it seems to acquire all the content of one of the production stacks and then Revolution gets all confused as to where changes are.

I can tell this is happening because the size of the "start using" stack is about 16 kilobytes and the production stack is on the order of 37 megabytes. So when the "start using" stack ends up the same size coupled with the behavior..., well you get the picture.

1) What is happening to cause this?

2) When it does happen there appears no way to clear out the problem. I seem to have to create a brand new stack, copy all the code into it, and start afresh.

Any ideas on this one?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Stacks getting contaminated with other stacks

Post by Mark » Sat Jul 31, 2010 11:10 pm

Judson,

My first hunch is that you have a script in your library stack that responds to the creation, deletion or updating of objects. The information you have is very sparse. Could you figure out when exactly the problem occurs?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: Stacks getting contaminated with other stacks

Post by Curry » Sat Jul 31, 2010 11:21 pm

See also: defaultStack
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

Judson
Posts: 26
Joined: Fri May 07, 2010 9:15 pm

Re: Stacks getting contaminated with other stacks

Post by Judson » Sat Jul 31, 2010 11:33 pm

Hummm, I don't see that.

As for defaultstack, that command is not used.

I can't identify when the problem materialized.

There seems to be something where stacks can have names which are different than their filenames and I wonder if that is a contributing factor.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Stacks getting contaminated with other stacks

Post by Mark » Sat Jul 31, 2010 11:42 pm

Judson,

Normally, using file names to refer to stacks doesn't cause any problems. What are you doing with regard to file names exactly?

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: Stacks getting contaminated with other stacks

Post by Curry » Sat Jul 31, 2010 11:46 pm

Libraries have to be written carefully with regard to stack references. Perhaps the library code is the culprit.
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

Post Reply