| View previous topic :: View next topic |
| Author |
Message |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Thu Apr 11, 2002 1:54 pm Post subject: Are big lists bad? |
|
|
| 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 |
|
 |
DanTheMan Contributor


Joined: 15 Mar 2002 Posts: 56 Location: Sweden
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Thu Apr 11, 2002 6:15 pm Post subject: |
|
|
__________________________________________________________________________________________________________________________
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 |
|
 |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Thu Apr 11, 2002 6:46 pm Post subject: |
|
|
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Thu Apr 11, 2002 6:59 pm Post subject: |
|
|
Hey Mark,
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...
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  _________________ 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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Apr 12, 2002 3:35 am Post subject: |
|
|
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 |
|
 |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Fri Apr 12, 2002 1:40 pm Post subject: |
|
|
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Apr 12, 2002 6:18 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Apr 12, 2002 6:52 pm Post subject: |
|
|
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 |
|
 |
|