Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
UltraWinListView causing OutOfMemory Execption
posted

We are using WinListView to show list of messages.  Its using too much RAM, and if there are more than 15,000 items, the application will crash. Each item in the list has 7 subItems

from my test - 2800 items will cause application footprint to take 370Mb of ram.  and if I try to load 17000, application takes 1.8gb of ram, and crashes with OutOfMemory exception. 

We used version 2010.3,  I updated to version 2012.1 but Listview seems to behave the same. 

What should I do?

This is a snippet:

 

 

 

 

 

lvMessage.SuspendLayout()
lvMessage.Items.Clear()
lvMessage.BeginUpdate()
For Each M In  Messages
 item = New Infragistics.Win.UltraWinListView.UltraListViewItem
 lvMessage.Items.Add(item)
 PopulateMessage(item, M)  'populate subitems here
 If selectedMessage IsNot Nothing AndAlso selectedMessage.ID = M.ID Then
  selectedItem = item
 End If
Next
lvMessage.EndUpdate()

Parents
  • 48586
    posted

    Hello ,

     

    I have tried to replicate your issue on my end, based on your code snipped (please see attached sample), but it seems that this issue is not so simple and it couldn't  be replicated only based on the code snipped. Please modify my sample or provide a small sample, in order to be able to reproduce this issue on my end and to investigate this further for you.

     

    I am waiting for your feedback

    91598VB.zip
Reply Children