I have a B4i project that uses xCustomListView and was certain it was working great ... except for occasional weird crashes. I've finally figured out that it's related to the number of panels that I add to clvFolder, an xCustomListView object. With large numbers of panels, the app crashes after loading clvFolder a few times. This happens even though I make sure clvFolder is redimensioned and cleared. With 100 panels, a crash occurs after 9 loadings of clvFolder; with 200 panels, after 5 loadings; with 500, after 2 loadings. Most times, I would only load 10-20 panels and the problem wouldn't show up, but I suspect that it would after 50-100 iterations of loading. So at this point it feels like some kind of memory allocation problem - maybe a bug, unless it's something in my code?
I've put together an app which simulates the problem and have attached it below. To install and run it yourself, you'll have to change the package name in Build Configurations so that you can use the hosted builder. Many thanks in advance if you decide to take a look at it. This has been driving me crazy for a few days now
.