Garbage Collection/Old Data in stack

Peter Haworth pete at lcsql.com
Sun Jan 18 12:32:52 EST 2015


Just tried the following script in a button in your Test3 stack file:

on mouseUp

   get the revUnplacedGroupIDs of stack "GolfDay FL"
   repeat for each line rID in it
      delete group id rID of stack "GolfDay FL"
   end repeat

end mouseUp

The saved the stack.  It's now 9kbytes in size.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Sun, Jan 18, 2015 at 9:25 AM, Peter Haworth <pete at lcsql.com> wrote:

> Hi Ralph,
> There's an undocumented property of a stack named revUnplacedGroupIDs.
> See what it shows for your stack
>
> You should be able to repeat through the lines in that property and delete
> the group ids listed in it.
>
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>
> On Sun, Jan 18, 2015 at 8:19 AM, Scott Rossi <scott at tactilemedia.com>
> wrote:
>
>> There isn’t any list of unplaced groups.  The reason I was able to tell
>> the groups were not placed is because all visible objects had been removed
>> from the sample stack. There
>>
>> Go to the Object menu under Place Group to see groups that can be placed
>> on the current card. Anything in the list that doesn’t exist elsewhere in
>> the stack is unplaced.
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>>
>> On Jan 18, 2015, at 7:19 AM, Dr. Hawkins <dochawk at gmail.com> wrote:
>>
>> > On Sat, Jan 17, 2015 at 10:06 PM, Scott Rossi <scott at tactilemedia.com>
>> > wrote:
>> >
>> >> You have 20+ unplaced groups present in the stack, many of which
>> contain
>> >> images, which is why you have 2+ MB in file size.
>> >
>> >
>> > OK, how do we find unplaced objects?  I think I have a few megs in my
>> main
>> > project.
>> >
>> >
>> > --
>> > Dr. Richard E. Hawkins, Esq.
>> > (702) 508-8462
>> > _______________________________________________
>> > use-livecode mailing list
>> > use-livecode at 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 at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>



More information about the Use-livecode mailing list