Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 9th, 2003, 10:56 AM
vb_user vb_user is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 6 vb_user User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old December 9th, 2003, 11:07 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,957 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 35 m 19 sec
Reputation Power: 802
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.

Reply With Quote
  #3  
Old December 9th, 2003, 11:17 AM
vb_user vb_user is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 6 vb_user User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old December 10th, 2003, 02:10 AM
vb_user vb_user is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 6 vb_user User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #5  
Old January 3rd, 2004, 11:23 PM
robbage robbage is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Perth, Western Australia
Posts: 30 robbage User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via ICQ to robbage
Why does it have to be in a listview?
Can you use a RichTextBox? (AFAIK, RTB can load any size limited by memory)

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > overflow of listview


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT