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()