Article View: news.software.readers
Article #79213Re: Xnews uses dynamic alloc for listview memory?
From: Matthijs Laan
Date: Fri, 25 May 2001 09:59
Date: Fri, 25 May 2001 09:59
30 lines
2106 bytes
2106 bytes
According to C32, [memory allocating for listview that isn't swapped out] > (I know this is a trivial thing to do if > you are using a more low- level language like asm or C with the win32 > base api only, dunno about delphi :) Allocating memory that can't be swapped out is just as trivial with Delphi as with any other language on Win32. In Windows, there's an API for this: VirtualLock. Unfortunately, this API is not supported on anything but Windows NT & 2000. Such a thing is thus impossible on Win95/98/ME in any language. Another problem with this would be that a lot of memory used by the control is managed by Windows itself, so that you probably can't even use this API on NT either. Workarounds for Xnews (besides ignoring this): - Frequently 'touch' the memory in the control - Put less things in the control I think ignoring this is the best thing to do; locking memory (either explicitly or implicitly with workarounds) is generally not a good idea as it *will* degrade performance. Let Windows manage the swap. Matthijs
Technical Details
Message-ID:
<Xns90AC731389A16matthijs@127.0.0.1>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!newszilla.xs4all.nl!not-for-mailReferences:
<Xns90ABE0079A63Axxcom@195.8.69.79>Show Full Headers
Complete Article Headers
Message-ID: <Xns90AC731389A16matthijs@127.0.0.1>
Subject: Re: Xnews uses dynamic alloc for listview memory?
Date: Fri, 25 May 2001 09:59:54 +0000
From: matthijsln@nospam-remove.xs4all.nl (Matthijs Laan)
References: <Xns90ABE0079A63Axxcom@195.8.69.79>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail
X-Posting-Agent: Hamster/1.3.22.0
Newsgroups: news.software.readers
User-Agent: Xnews/4.05.11
X-Face: c"kR4jyeH#ybTcZgH{W"[->t(g]##rZFXYNH\&5:^\Ur73N{MZU$!$_.w409gu,}mUQWI(z!X['Pf4Qs*GI9w[?Q./mZ{h<wC"u~Ei\O*eEPQVC5S4R@jyXc]d:&!C^RRemg)SS@w-?[fXmna^-w@:D*zn`aSwY
Lines: 29
NNTP-Posting-Host: 194.109.191.102
X-Trace: 990784794 newszilla.xs4all.nl 19614 194.109.191.102