gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1617 Posts in 535 Topics by 779 Members - Latest Member: rhoronjeff@comcast.net November 27, 2022, 08:25:46 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  Windows  |  Error “buffer allocation failed” Windows XP Proffessional SP2
gfx
gfxgfx
 

Author Topic: Error “buffer allocation failed” Windows XP Proffessional SP2  (Read 6270 times)

Meima

  • Newbie
  • *
  • Posts: 1
Hello,
I've compiled an existing FORTRAN source code with the ABSOFT 9.0 windows compiler. The code represents a simulation tool and I'm using it with large arrays.

The executable is running without problems (also with large arrays) under Windows ME or Windows XP Professional (without any service packs installed) and with 2GB virtual memory.

However, an error message “buffer allocation failed” occurs under Windows XP Professional with service pack 2 installed (e.g. AMD Athlon™ 64 X2 Dual Core Processor 5000+, 2.61 GHz, 3.25 GB RAM). If the array-sizes are reduced, this error message does not occur and the programm is running fine on this machine as well.

Has the installation of “service pack 2” have something to do with the “buffer allocation failed” error?
Any Ideas how to solve this problem?

Kind regards,
Jeannet

Mike Linacre

  • Sr. Member
  • ****
  • Posts: 259
Re: Error “buffer allocation failed” Windows XP Professional SP2
« Reply #1 on: July 25, 2007, 03:44:49 AM »
This is a known problem (not really a bug). Check that your buffer request is less or equal to the maximum supported by the routine you are using to call Windows. You may have used an integer value that is too large, so that Windows may be interpreting the number it receives as a negative buffer size. On a standard XP computer, it is unlikely that a memory request greater than 1GB will succeed, so segment big requests into several smaller ones.
« Last Edit: July 25, 2007, 03:46:59 AM by Mike Linacre »

ColinC

  • Newbie
  • *
  • Posts: 5
Re: Error “buffer allocation failed” Windows XP Proffessional SP2
« Reply #2 on: July 25, 2007, 04:44:19 AM »
Check your Windows system to see if this one has allocated excessive memory to optimise for system (Windows) rather than for application.
Colin

Absoft User Forum  |  Support  |  Windows  |  Error “buffer allocation failed” Windows XP Proffessional SP2
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!