0XC000012C

Fix STATUS_PAGEFILE_QUOTA_EXCEEDED (0XC000012C)

Windows Errors Intermediate 👁 6 views 📅 Jun 23, 2026

A program tried to use more page file space than allowed. We'll fix the quota limit, check your page file, and make sure it's not full.

Quick answer for experienced users: This error means a program hit the page file quota. Increase the quota by setting a larger initial page file size, or disable the quota entirely via registry. Then restart the app.

What's this error really about?

I know seeing 0xC000012C when you're trying to open a program is frustrating. This tripped me up the first time too. The error message says "page file quota was exceeded." In plain English, your page file—that hidden C:\pagefile.sys on your drive—acts as extra RAM when physical memory runs low. Windows sets a limit on how much of it each program can use. When a program needs more, you get this error.

This often happens when you're running memory-heavy apps like Adobe Premiere, Chrome with fifty tabs, or a virtual machine like VirtualBox. I've also seen it with older games that try to allocate a ton of virtual memory at once. The fix is straightforward.

Fix it in 3 steps

Step 1: Increase the page file size

First, let's give the system more page file space. This is the most likely fix.

  1. Press Win + R, type sysdm.cpl, then hit Enter.
  2. Go to the Advanced tab. Under Performance, click Settings.
  3. In the Performance Options window, go to the Advanced tab again. Under Virtual memory, click Change.
  4. Uncheck "Automatically manage paging file size for all drives."
  5. Select your system drive (usually C:). Choose Custom size.
  6. Set Initial size to 1.5 times your RAM. For example, if you have 8GB RAM, set it to 12288 MB (8 * 1024 * 1.5).
  7. Set Maximum size to 3 times your RAM. So for 8GB RAM, that's 24576 MB.
  8. Click Set, then OK. Reboot your PC.

If you're not sure how much RAM you have, press Ctrl + Shift + Esc to open Task Manager, then look at the Performance tab. It shows RAM at the top.

Step 2: Disable the page file quota (if step 1 didn't work)

Sometimes the quota itself is set too low by a program or malware. Here's how to remove it:

  1. Open Registry Editor (press Win + R, type regedit, hit Enter).
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.
  3. Look for a DWORD called PagingFilesQuota. If it's there, double-click it and change its value to 0 (zero). If it's not there, skip this step.
  4. Close Registry Editor and restart your PC.

Step 3: Check disk space and page file health

If the page file can't grow because your drive is nearly full, you'll hit this error too. Check your free space:

  1. Open File Explorer and right-click your system drive (C:).
  2. Click Properties. Make sure you have at least 10-15 GB free. If not, clear space by running Disk Cleanup (right-click the drive, Properties, then Disk Cleanup).

Also, run a quick Check Disk to make sure the page file isn't on a damaged part of the drive. Open Command Prompt as administrator (right-click Start, choose Command Prompt or Terminal as admin). Then type:

chkdsk C: /f /r

It'll ask to schedule a scan on next reboot. Type Y and restart. This takes a while, but it's worth it.

Alternative fixes if the main one fails

Restart the program as admin

Some apps run with a higher quota when given admin rights. Right-click the program's shortcut and choose Run as administrator. If it works, go to its Properties > Compatibility tab, check "Run this program as an administrator."

Let Windows manage the page file

Yes, I know I told you to set a custom size. But on some systems, especially with SSDs, Windows manages it better. Go back to the Virtual Memory settings, check "Automatically manage paging file size," and restart. Then test the app again.

Check for memory leaks

If a specific program keeps triggering this error, it might have a memory leak. Open Task Manager, go to the Processes tab, and look at the Memory column. If one program is using 2GB+ and climbing, that's your culprit. Update the program or reinstall it.

Prevention tip

Once you've fixed the error, set a regular schedule to check your disk space and page file health. I do it once a month. Use Task Scheduler to run Disk Cleanup automatically if you want—you can set it to run weekly. Also, avoid running too many memory-heavy apps at once. Close programs you're not using. It sounds obvious, but it works.

If you keep seeing this error on a system with 16GB or more RAM, consider adding more physical memory. The page file is always a slower fallback. More RAM means less page file usage, fewer headaches.

Was this solution helpful?