Article View: borland.public.cppbuilder.nativeapi
Article #6046Re: How to Make Sure that Buffer use ONLY memory
From: Deniel
Date: Mon, 13 Jun 2005 09:22
Date: Mon, 13 Jun 2005 09:22
19 lines
1885 bytes
1885 bytes
Thanks JD, i'll reply to you all later becouse i must go soon, but i just want to understand something, you tell me that i can do what i want very easy by using 'new', and it's realy looks like a great solution, but if i can realy use it, and it's so easy, then why do i get here so many complicated methods as 'VirtualAlloc', 'FileMapping' and so on if there is such a simple way to do this by using the 'new' command? is there any problem with this command for doing what i want? and why did i read that the ONLY way to force memory allocation on the 'real' RAM is using VirtualAlloc() and VirtualLock() ? So the question is - Are you SURE that using 'new' force that all the allocation will sit ONLY on a 'real' RAM and will not use the Hard-Disk at all? (and that's what i want) Thanks. Dani.
Technical Details
Message-ID:
<42ad5055$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> <42ac35d0$1@newsgroups.borland.com> <42ac8a8a$1@newsgroups.borland.com> <42acebc2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,93efc3d53d15c3e4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Deniel" <DenielMail@Internet.com> Sender: "Deniel" <DenielMail@Internet.com> Reply-To: "Deniel" <DenielMail@Internet.com> Subject: Re: How to Make Sure that Buffer use ONLY memory Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.0.168.253 References: <42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> <42ac35d0$1@newsgroups.borland.com> <42ac8a8a$1@newsgroups.borland.com> <42acebc2$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42ad5055$1@newsgroups.borland.com> Date: 13 Jun 2005 02:22:29 -0700 X-Trace: newsgroups.borland.com 1118654549 207.105.83.66 (13 Jun 2005 02:22:29 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail