Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Eddy Vluggen31-Jan-11 10:44
professionalEddy Vluggen31-Jan-11 10:44 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Not Active31-Jan-11 12:13
mentorNot Active31-Jan-11 12:13 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Fabio Franco1-Feb-11 4:08
professionalFabio Franco1-Feb-11 4:08 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Dave Kreskowiak31-Jan-11 7:34
mveDave Kreskowiak31-Jan-11 7:34 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 9:56
professionalChesnokov Yuriy31-Jan-11 9:56 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Fabio Franco1-Feb-11 3:17
professionalFabio Franco1-Feb-11 3:17 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy1-Feb-11 3:39
professionalChesnokov Yuriy1-Feb-11 3:39 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Fabio Franco1-Feb-11 3:52
professionalFabio Franco1-Feb-11 3:52 
Chesnokov Yuriy wrote:
You do not know my design. Message pump is independent from the view representation, pump observer. There is no blocking of the pump no matter what the observer of the pump do.
The application freeze only at one point, adding of the list view items to list view, either one by one all of them with AddRange.


It's not your design, the view representation is totally dependant of the message pumb, read my article: FormEx[^] and perhaps you'll have some idea on how the view get's rendered, it's through windows messages. The application freezes because WM_PAINT message never gets processed by your application because there can be only one UI thread and while you're adding items to your listview, the thread get's dedicated to that alone and has no time to process paint, click and other messages because it's adding the items of the listview, UI operations do not run in parallel. Just do a while(true); on a click of a button and that will also block paint messages and will freeze the app. Add Range and adding one by one are doing the exact same things. AddRange is just to make some operations simpler to the control user. Again, I think you have a complete misunderstanding of how event works.


Chesnokov Yuriy wrote:
There are many customers and you can not develop one solution that suit them all.
I'm one of those wierd ones who fond of scrolling 100,000 events Wink


Well, if you're developing this to yourself, I guess there's no harm then, but I really think that's not the best approach if you're developing to a client, I know we can't please them all, but I also know that there are best practices and consolidated designs that pleases the most and I really think your approach is not the most appropriate. But who to know better what your target audience wants but yourself? Shucks | :-\
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Euhemerus1-Feb-11 6:52
Euhemerus1-Feb-11 6:52 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Dave Kreskowiak1-Feb-11 12:23
mveDave Kreskowiak1-Feb-11 12:23 
AnswerRe: How to load 100,000 list view items without application freeze? PinPopular
Richard MacCutchan31-Jan-11 4:05
mveRichard MacCutchan31-Jan-11 4:05 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 6:43
professionalChesnokov Yuriy31-Jan-11 6:43 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Luc Pattyn31-Jan-11 4:13
sitebuilderLuc Pattyn31-Jan-11 4:13 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 6:49
professionalChesnokov Yuriy31-Jan-11 6:49 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Luc Pattyn31-Jan-11 6:57
sitebuilderLuc Pattyn31-Jan-11 6:57 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 7:03
professionalChesnokov Yuriy31-Jan-11 7:03 
QuestionRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 6:53
professionalChesnokov Yuriy31-Jan-11 6:53 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 6:55
professionalChesnokov Yuriy31-Jan-11 6:55 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Paw Jershauge31-Jan-11 9:00
Paw Jershauge31-Jan-11 9:00 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Richard MacCutchan31-Jan-11 9:15
mveRichard MacCutchan31-Jan-11 9:15 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Paw Jershauge31-Jan-11 12:18
Paw Jershauge31-Jan-11 12:18 
QuestionRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy1-Feb-11 1:14
professionalChesnokov Yuriy1-Feb-11 1:14 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Richard MacCutchan1-Feb-11 3:17
mveRichard MacCutchan1-Feb-11 3:17 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 10:00
professionalChesnokov Yuriy31-Jan-11 10:00 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Paw Jershauge31-Jan-11 12:17
Paw Jershauge31-Jan-11 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.