I am using a PtList widget to build a custom file-selection dialog. It
crashes if I add too many files (approximately 10000). Is there a
restriction on this widget regarding how many entries can be made?
Frank wrote:
I am using a PtList widget to build a custom file-selection dialog. It
crashes if I add too many files (approximately 10000). Is there a
restriction on this widget regarding how many entries can be made?
Yes, but the limit is 65535 items. I remember lists drawing funny stuff
when the total height of all items was greater than 64K pixels, but not
crashing. And even that was fixed years ago.
I just built a simple application that puts 40000 items in a PtList, and
it worked fine. I guess you must be doing something differently. Can
you reproduce this crash in a small program, with just a few widgets and
callbacks? If yes, could I have a look at that program?