Real Problem in Listview dealing with tons of data
-
Question has been solved Thanks everyone for those comments :) it helped me a lot, I am considering users here asthe most amazing users ever! :thumbsup::thumbsup::thumbsup::thumbsup::thumbsup: oky I have a list view (using MDI also) and I am drawing everything from scratch, everything works amazingly, but recently when i tried to print tons of data, i the list went crazy, and it seems the whole app went crazy not just the listview, I tried to disable all the features in my app and that bug still there basically the program has a highlight row and that row in blue, that bug changes it to another color, and i cannot use the editing text method and when I minimize the list, it does not come back, as if the whole program got busted? bty, its not form custom draw cuz i did check every single line... http://oi43.tinypic.com/25zibrl.jpg[^] what made it weird that even the menu went black? i am sure that if it a listview problem it wont change the menu color?? is the listview has a specific stack size or heap size in onwerdata? i dunno what i am saying but the list works fine in some cases except when i deal with more data, any ideas why that happens? :( edit1: I tried update the whole list with the whole program and nothing happened (if it paints issues redrawing the whole app will help but did not work here?) edit2: some has almost same problem and he wrote (I am using a CListView in my application. When I run the application and it gets a lot of items in it's CListView (3 or 4 thousand at least) the application's windows go all stange. From then after all Menus in all applications (including taskbar and desktop menus) are displayed with black bars over most of their items, moving the mouse down over them removes most of the black bars. Thanks for any help.) but no one answered him?
-
Question has been solved Thanks everyone for those comments :) it helped me a lot, I am considering users here asthe most amazing users ever! :thumbsup::thumbsup::thumbsup::thumbsup::thumbsup: oky I have a list view (using MDI also) and I am drawing everything from scratch, everything works amazingly, but recently when i tried to print tons of data, i the list went crazy, and it seems the whole app went crazy not just the listview, I tried to disable all the features in my app and that bug still there basically the program has a highlight row and that row in blue, that bug changes it to another color, and i cannot use the editing text method and when I minimize the list, it does not come back, as if the whole program got busted? bty, its not form custom draw cuz i did check every single line... http://oi43.tinypic.com/25zibrl.jpg[^] what made it weird that even the menu went black? i am sure that if it a listview problem it wont change the menu color?? is the listview has a specific stack size or heap size in onwerdata? i dunno what i am saying but the list works fine in some cases except when i deal with more data, any ideas why that happens? :( edit1: I tried update the whole list with the whole program and nothing happened (if it paints issues redrawing the whole app will help but did not work here?) edit2: some has almost same problem and he wrote (I am using a CListView in my application. When I run the application and it gets a lot of items in it's CListView (3 or 4 thousand at least) the application's windows go all stange. From then after all Menus in all applications (including taskbar and desktop menus) are displayed with black bars over most of their items, moving the mouse down over them removes most of the black bars. Thanks for any help.) but no one answered him?
Hi, I'm not certain if this is the problem but you say that the problem started when you wanted to show a lots of data, you also mentioned that you draw the list yourself. (Custom draw) It could be that you are running out of resources, GDI resources to be precises, this could explain why even other part of the application are getting problems drawing themselfes. Its a wild guess, but its worth to check this. (this can be verified quickly with the task manager) regards
Learn from the mistakes of others, you may not live long enough to make them all yourself.
-
Question has been solved Thanks everyone for those comments :) it helped me a lot, I am considering users here asthe most amazing users ever! :thumbsup::thumbsup::thumbsup::thumbsup::thumbsup: oky I have a list view (using MDI also) and I am drawing everything from scratch, everything works amazingly, but recently when i tried to print tons of data, i the list went crazy, and it seems the whole app went crazy not just the listview, I tried to disable all the features in my app and that bug still there basically the program has a highlight row and that row in blue, that bug changes it to another color, and i cannot use the editing text method and when I minimize the list, it does not come back, as if the whole program got busted? bty, its not form custom draw cuz i did check every single line... http://oi43.tinypic.com/25zibrl.jpg[^] what made it weird that even the menu went black? i am sure that if it a listview problem it wont change the menu color?? is the listview has a specific stack size or heap size in onwerdata? i dunno what i am saying but the list works fine in some cases except when i deal with more data, any ideas why that happens? :( edit1: I tried update the whole list with the whole program and nothing happened (if it paints issues redrawing the whole app will help but did not work here?) edit2: some has almost same problem and he wrote (I am using a CListView in my application. When I run the application and it gets a lot of items in it's CListView (3 or 4 thousand at least) the application's windows go all stange. From then after all Menus in all applications (including taskbar and desktop menus) are displayed with black bars over most of their items, moving the mouse down over them removes most of the black bars. Thanks for any help.) but no one answered him?
The only thing I can think of to check right now is GDI leaks. When the system runs out of resources, all kinds of system-wide funkiness may be enjoyed. Have you checked for them? If not, you can view them in the task-manager. View->Select Columns->GDI Objects If this number is not steady - i.e it increases, you've got a leak. More info: here[^] and here[^].
"Science adjusts its views based on what's observed. Faith is the denial of observation, so that belief can be preserved." - Tim Minchin
-
Question has been solved Thanks everyone for those comments :) it helped me a lot, I am considering users here asthe most amazing users ever! :thumbsup::thumbsup::thumbsup::thumbsup::thumbsup: oky I have a list view (using MDI also) and I am drawing everything from scratch, everything works amazingly, but recently when i tried to print tons of data, i the list went crazy, and it seems the whole app went crazy not just the listview, I tried to disable all the features in my app and that bug still there basically the program has a highlight row and that row in blue, that bug changes it to another color, and i cannot use the editing text method and when I minimize the list, it does not come back, as if the whole program got busted? bty, its not form custom draw cuz i did check every single line... http://oi43.tinypic.com/25zibrl.jpg[^] what made it weird that even the menu went black? i am sure that if it a listview problem it wont change the menu color?? is the listview has a specific stack size or heap size in onwerdata? i dunno what i am saying but the list works fine in some cases except when i deal with more data, any ideas why that happens? :( edit1: I tried update the whole list with the whole program and nothing happened (if it paints issues redrawing the whole app will help but did not work here?) edit2: some has almost same problem and he wrote (I am using a CListView in my application. When I run the application and it gets a lot of items in it's CListView (3 or 4 thousand at least) the application's windows go all stange. From then after all Menus in all applications (including taskbar and desktop menus) are displayed with black bars over most of their items, moving the mouse down over them removes most of the black bars. Thanks for any help.) but no one answered him?
You should try to diagnose your situation with a leak detector like one of these: http://msdn.microsoft.com/en-us/magazine/cc188782.aspx[^] http://www.nirsoft.net/utils/gdi_handles.html[^]
-
Hi, I'm not certain if this is the problem but you say that the problem started when you wanted to show a lots of data, you also mentioned that you draw the list yourself. (Custom draw) It could be that you are running out of resources, GDI resources to be precises, this could explain why even other part of the application are getting problems drawing themselfes. Its a wild guess, but its worth to check this. (this can be verified quickly with the task manager) regards
Learn from the mistakes of others, you may not live long enough to make them all yourself.
i did not even think about that?!!! the thing is as soon as my program rich 10000 objects then that bug appears so, and if i am not wrong i remember that win7 it's 10000 as default so, by increasing that it will fix it 100%, which can be done from the registry thanks I really appreciate that, and i do like this site better than stackoverflow, since they think that they are the best and as soon as you ask question they consider you as a jerk (down vote) anyway thanks a lot....
-
You should try to diagnose your situation with a leak detector like one of these: http://msdn.microsoft.com/en-us/magazine/cc188782.aspx[^] http://www.nirsoft.net/utils/gdi_handles.html[^]
-
The only thing I can think of to check right now is GDI leaks. When the system runs out of resources, all kinds of system-wide funkiness may be enjoyed. Have you checked for them? If not, you can view them in the task-manager. View->Select Columns->GDI Objects If this number is not steady - i.e it increases, you've got a leak. More info: here[^] and here[^].
"Science adjusts its views based on what's observed. Faith is the denial of observation, so that belief can be preserved." - Tim Minchin