forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Are big lists bad?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Thu Apr 11, 2002 1:54 pm    Post subject: Are big lists bad? Reply with quote

I think I remember someone saying that there is some sort of memory leak when using large lists. Is that correct? If so, what is the best way to get around this?
Back to top
View user's profile Send private message
DanTheMan
Contributor
Contributor


Joined: 15 Mar 2002
Posts: 56
Location: Sweden

PostPosted: Thu Apr 11, 2002 2:18 pm    Post subject: Reply with quote

I don't now if this is fixed in the last release 4.50 but you can read about
it here:

http://www.vdsworld.com/forum/viewtopic.php?t=47&highlight=leak
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Thu Apr 11, 2002 6:15 pm    Post subject: Reply with quote

__________________________________________________________________________________________________________________________
The memory leak is only when using LIST SAVEFILE.
It's not a big deal unless your program constantly
saves to disk, such as a running log file etc., and it
seems to work with little or no leak on files up to about
20k.

Has anyone tried the memory leak example in VDS 4.5?

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
MarkTrubo
Contributor
Contributor


Joined: 27 May 2001
Posts: 148
Location: Long Island, NY

PostPosted: Thu Apr 11, 2002 6:46 pm    Post subject: Reply with quote

Have not tested if the leak is still there, but another issue is... I have text lists of fax numbers -- if I use VDS to count them, it works fine for lists under 101,536 (I did not test if it is that count every time, but that was what I just got when I tried it), but does not count any higher.

LIST CREATE,1
LIST LOADFILE,1,s:\212fax.txt
WARN @COUNT(1)

The list above has about 170,000 records in it. Anyone else have this problem?

Mac wrote:
__________________________________________________________________________________________________________________________
The memory leak is only when using LIST SAVEFILE.
It's not a big deal unless your program constantly
saves to disk, such as a running log file etc., and it
seems to work with little or no leak on files up to about
20k.

Has anyone tried the memory leak example in VDS 4.5?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Thu Apr 11, 2002 6:59 pm    Post subject: Reply with quote

Hey Mark, Smile

Some of that may be a Windows list limitation.
Windows lists are limited by available memory,
and in Windows 95 they're limited to 32767 items
(that's items, not bytes), no matter if you have
more free RAM or not... Sad

However, apparently VDS hidden lists are only
limited by available memory (the ones created
with LIST CREATE). I've been able to use more
than 32767 items in those with Windows 95.

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Apr 12, 2002 3:35 am    Post subject: Reply with quote

I've stuffed as much as 2956189 lines into an internal list. And no problems here.


-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
MarkTrubo
Contributor
Contributor


Joined: 27 May 2001
Posts: 148
Location: Long Island, NY

PostPosted: Fri Apr 12, 2002 1:40 pm    Post subject: Reply with quote

Hmmmm, I'm running the list count thing on a
Windows NT4 Service pack 6 machine with
966MHz PIII and a whopping 1,024 MB of ram.
Still caps out at just over 100K items.
Am I doing something stoooopid?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Apr 12, 2002 6:18 pm    Post subject: Reply with quote

Well, I'm not familiar with NT, but here's some
thoughts...

Did you check how much of your RAM is actually
available?

Has the machine been rebooted lately?

Could it possibly be just an NT thing?

Does the program do the same whether compiled
or not?

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Apr 12, 2002 6:52 pm    Post subject: Reply with quote

I neglected to say..... My experience with the large lists was on a Win98SE box with 256 megs of memory, and well over half of that memory was available. The file mentioned above was app 96 megs.

I should note also, that it did take sometime to actually load that file into the list.

I wouldn't recommend using VDS for checking files this large in mission critical situations, especially if the situation is time sensitive.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group