|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
overflow of listview
Hello,
I am facing problem with the overflow of the listview. I am trying to dump the file into the listview. The size of the file is more the 5MB. When I am trying to dump this big file it gives me error that "Run Time Error : 6 Overflow". I think this is because of the limitation of the size of the listview. Now my planning to read file in step by step ( say..read 2MB of data ) and dump into the listview. Than again readt 2 MB of data and dump again. I dont know how to do that. I am really got stuck at this point. I will be very much happy if some body give me idea on this. Please give me material/link on this issue. Souce code will be most welcome. Thank you very much in advance. Regards, vb_user. |
|
#2
|
|||
|
|||
|
Who in the world would look at a 5mb list on one page? You should re-think the need for creating this size of a listview.
|
|
#3
|
|||
|
|||
|
Hello Doug G,
Yes....your are right that who is the world would look at 5mb list on one page. But my planning is to devide the data stored in the big file. Say I have 5mb of file. Now I want to read this file. So first I will read 500kb of data and than dump in the listview. Now when user select NEXT command button (which I will create) than read the next 500kb of data and dump into the listview and so on. I dont know how exaactly to do this. Your help will be more hulpful for me. Thank in advance for your cooperation. Regards, vb_user. |
|
#4
|
|||
|
|||
|
Hello,
I think I have to use Memory Mapping of file. Few methods are avilable in VB. Like CreateFileMapping, MapViewOfFile, MapViewOfFileEx.... I am not able to use this methods properly. Please tell me if you have any idea on this methods. Please provide me some like/material if u knows. Source Code will be most welcome. Thanks in advance for your cooperation. Regards, vb_user. |
|
#5
|
|||
|
|||
|
Why does it have to be in a listview?
Can you use a RichTextBox? (AFAIK, RTB can load any size limited by memory) |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > overflow of listview |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|