VirtualFree() failed: Attempt to access invalid address. VirtualAlloc() failed: Not enough memory resources are available to process this command. Updating dependencies (including require-dev) For example, lately with the latest version of Composer this kind of exception is raised when you try to update packages with the composer update instruction: Loading composer repositories with package information Errors based on the VirtualAlloc and VirtualFree methods during the execution of a script in PHP, is explained by a very simple fact, PHP don't have enough memory available to execute it, that's why the exception is thrown and you will find as well the PHP Fatal error message 'Out of memory (allocated xxxxxx) (tried to allocate xxxx bytes)'.