Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3490044
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:28:07+00:00 2026-05-18T11:28:07+00:00

My machine has 8GB of RAM and is running Windows Server 2008. malloc() /

  • 0

My machine has 8GB of RAM and is running Windows Server 2008. malloc()/realloc() fails to allocate more memory when my application has 1.5~1.7GB already allocated. I tried switching to HeapAlloc()/HeapRealloc() instead and the same situation happens.

Is there something I am missing here? What could be causing my application to be unable to allocate more memory when there is clearly available RAM?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:28:07+00:00Added an answer on May 18, 2026 at 11:28 am

    What could be causing my application to be unable to allocate more memory when there is clearly available RAM?

    Heap fragmentation. Allocation doesn’t simply ask for memory. It asks for a contiguous piece of memory.

    Of course, given the sparse data you provided (how much are you trying to re-alloc when that happens? is this a 32bit or a 64bit app?), there could be other problems as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two machines: my dev machine has Windows Server 2008 R2 on it,
I need to know how much physical memory a windows machine has, using Perl.
Has anyone tried installing SQL Server 2008 Developer on a machine that already has
My development machine has SQL Server 2008 Developer edition on it. A production server
I have a VPN in my office. One machine has windows server 2003 installed.
I'm developing an OpenGL application for Windows XP. The target machine has 2 NVIDIA
I have an ASP.NET web site, my machine has IIS7 running on Windows Vista
I have a Windows XP machine that has Apache installed via a VisualSVNServer installation.
On a 32 bit Windows Server 2003 machine I have created a Visual Studio
I have a ClickOnce application that won't run unless the client machine has .NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.