Memory allocation problem

div0 div0 at users.sourceforge.net
Mon Aug 10 12:21:04 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://www.digitalmars.com/d/archives/digitalmars/D/OPTLINK_and_LARGEADDRESSAWARE_88061.html

bearophile wrote:
> In a small program on Windows XP I have to allocate a large chunk of RAM, about 1847 MB of RAM. This PC has 2 GB RAM. So I use std.c.stdio.malloc(), with DMD v1.042 (or v2.031). But it's not able to allocate it, and produces at runtime:
> Error: Access Violation
> 
> An equal program written in C and compiled with GCC, that allocates the same amount of memory using malloc, is able to run (with just a little hard disk trashing at the beginning).
> Do you know why DMD doesn't allow me to allocate more RAM, and can this be fixed?
> 
> Bye,
> bearophile

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKgHMgT9LetA9XoXwRAv1VAJ0THPYbgGMuQ4+yjVI0vsnT1fuBJgCeLgim
qg7qFJXZ+ZOmmtc29Jpdjts=
=W6kx
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list