Page 1 of 1

Persistent crashing

Posted: Mon Aug 27, 2012 11:39 am
by Maxiogee
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.

Re: Persistent crashing

Posted: Mon Aug 27, 2012 11:57 am
by Klaus
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

Re: Persistent crashing

Posted: Mon Aug 27, 2012 1:25 pm
by Maxiogee
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

Re: Persistent crashing

Posted: Mon Aug 27, 2012 2:16 pm
by Klaus
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

Re: Persistent crashing

Posted: Tue Aug 28, 2012 12:56 am
by dunbarx
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