Persistent crashing

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Maxiogee
Posts: 38
Joined: Thu May 05, 2011 5:45 pm

Persistent crashing

Post by Maxiogee » Mon Aug 27, 2012 11:39 am

I am trying to create a 10,000 card stack with two fields and one button.

One field is to hold the card number.
The other field is a scrolling field with 9999 lines.
Each line is to hold its own four-digit number and a 0…

0001 0
0002 0
0003 0
.
.
9998 0
9999 0

Another stack will increment those zeroes in a counting procedure.
The button script copies the second field from the first card to all the other cards.
This operation crashes - repeatedly - at different places in the procedure, usually between 4,000 and 5,000 cards.

If it might help anyone I could post one of the crash messages this generates.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Persistent crashing

Post by Klaus » Mon Aug 27, 2012 11:57 am

Hi Maxiogee,

are you sure you need 10000 cards?
I guess this is a memory problem.

"Rule of thumb": if you think you need more than say 5000 cards, use a database, text files or another approach 8)


Best

Klas

Maxiogee
Posts: 38
Joined: Thu May 05, 2011 5:45 pm

Re: Persistent crashing

Post by Maxiogee » Mon Aug 27, 2012 1:25 pm

Klaus wrote:Hi Maxiogee,

are you sure you need 10000 cards?
I guess this is a memory problem.

"Rule of thumb": if you think you need more than say 5000 cards, use a database, text files or another approach 8)


Best

Klas
Well I thought I did, Klaus, I'm dealing with millions of items.
The smallest of the stacks from which the counting will be done consists of 500+ cards with one field of 10,000 lines.

Back to the "think different" drawing board!

Thanks, I think. :D

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Persistent crashing

Post by Klaus » Mon Aug 27, 2012 2:16 pm

Hi Maxiogee,

if the content of the fields does NOTneed to be displayed, I would highly recommend to use custom properties instead of fields!
They can be accessed a LOT faster than fields!


Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10323
Joined: Wed May 06, 2009 2:28 pm

Re: Persistent crashing

Post by dunbarx » Tue Aug 28, 2012 12:56 am

Hi.

I am used to HC's ability to have large numbers of cards in a stack. LC seems not to like this so much.

But I made a stack of 15,000 cards, with 10,000 lines of random data in a shared bg fld, and have no issues at all.

I populated the field on the first card, and then created new ones with the "create card" command. Is that what yours did?

Craig Newman

Post Reply