Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > Re: Strange Out...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 11 Topic 270 of 282
Post > Topic >>

Re: Strange Out of memory error.

by Peter Manders <news@[EMAIL PROTECTED] > Jun 19, 2008 at 05:13 PM

On Thu, 19 Jun 2008 09:53:48 +0200, "Luke" <luke987_1@[EMAIL PROTECTED]
> wrote:

>
>"Michael Mattias" <mmattias@[EMAIL PROTECTED]
> skrev i melding 
>news:j2d6k.8722$jI5.8581@[EMAIL PROTECTED]
>> Strangely enough, the error message is exactly correct: you are trying
to 
>> allocate too much memory. Your available physical must now be such that

>> the total requirements for your program when you try to allocate all of

>> that 'available physical'  exceed your  2 Gb user limit  per process.
>
>I'm not sure I understand you correctly. The help file says, under
Features 
>of PBCC, "Use of all available memory(up to 2GB) for arrays and strings"
>In my case I have 1.3GB memory available.And there was no problem with
1GB 
>memory installed.

While I agree with Michael's answer to you, I have a suggestion for a
possible generic approach. Why don't you use a binary kind of scan to
find out how much memory you can allocate? Something like:

Can I get 2Gb?
If no, can I get 1Gb?
If yes, can I get 1.5Gb?
If yes, can I get 1.75Gb?
if no, can I get 1.625Gb?

Etcetera until the delta amount is too small to bother.

Also, maybe you do have something like 1.2Gb free memory, but it could
be split up so the largest amount you can actually allocate may be
just half of it (depending on how well Windows manages memory
allocation).

-- 
Peter Manders.

I like to sing to the songs on the radio in my car.  When you go into a
tunnel, it's hard to come out on the right note.  Actually, the news is
more difficult.
 




 11 Posts in Topic:
Strange Out of memory error.
"Luke" <luke  2008-06-18 20:38:42 
Re: Strange Out of memory error.
"Michael Mattias&quo  2008-06-18 14:07:37 
Re: Strange Out of memory error.
"Luke" <luke  2008-06-19 09:53:48 
Re: Strange Out of memory error.
"Michael Mattias&quo  2008-06-19 07:37:26 
Re: Strange Out of memory error.
Peter Manders <news@[E  2008-06-19 17:13:59 
Re: Strange Out of memory error.
bok118@[EMAIL PROTECTED]   2008-06-19 09:54:31 
Re: Strange Out of memory error.
"Luke" <luke  2008-06-19 13:29:22 
Re: Strange Out of memory error.
Wolfgang Enzinger <weu  2008-06-24 11:33:40 
Re: Strange Out of memory error.
"Luke" <luke  2008-06-27 11:38:15 
Re: Strange Out of memory error.
"Michael Mattias&quo  2008-06-27 07:00:19 
Re: Strange Out of memory error.
bok118@[EMAIL PROTECTED]   2008-07-28 14:29:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 16:37:18 CDT 2008.