Article View: borland.public.cppbuilder.nativeapi
Article #6039Re: How to Make Sure that Buffer use ONLY memory
From: Deniel
Date: Sun, 12 Jun 2005 19:18
Date: Sun, 12 Jun 2005 19:18
22 lines
1770 bytes
1770 bytes
>So you know, BCB is a 32 bit compiler which means that it can >reference 4GB so you could use a simple call to 'new' to >allocate the buffer. Hi JD, let me understand, as you know my main problem is how to make sure that all the memory allocation for this buffer will sit ONLY on the 'real' physical RAM (the 256 MB that my PC have). So what do you say? that if i'll use 'new' (which is very easy) the allocation will be ONLY in the 'real' memory without that 'paging' thing that use tha hard-drive as part of the memory? If so, then it's the perfect solution for me, but does it realy works this way? >I would suggest that you just try to allocate 150MB and if and >when it fails, step down the size requested and try again until >it succeeds. Yes that's the way. Dani
Technical Details
Message-ID:
<42ac8a8a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> <42ac35d0$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.172.65 References: <42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> <42ac35d0$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42ac8a8a$1@newsgroups.borland.com> Date: 12 Jun 2005 12:18:34 -0700 X-Trace: newsgroups.borland.com 1118603914 207.105.83.66 (12 Jun 2005 12:18:34 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail