Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CreateProcess returns Error 1450 - No sufficient resources to complete requested service

CreateProcess returns Error 1450 - No sufficient resources to complete requested service

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vipin_nvk
    wrote on last edited by
    #1

    Hello I have written a small application which reads the registry keys present in a .txt file and tries to export each key using regedit, i.e. I read each line of the file (which is a key) and using the commandline for regedit (regedit /e "target file" "source key") I export it into a folder creating a new .reg file for each key read from the file. Now in my .txt file there are around 11,500 keys. The keys are successfully exported till 5450, but after that calling CreateProcess on regedit returns error no. 1450 (no system resources) and all the subsequent keys are not exported into the target folder. What could be the reason for this error to come up? And how should I change the logic so that this error doesnt come up and all the 11500 keys are exported as different .reg files into my target folder? Thanx.

    B 1 Reply Last reply
    0
    • V vipin_nvk

      Hello I have written a small application which reads the registry keys present in a .txt file and tries to export each key using regedit, i.e. I read each line of the file (which is a key) and using the commandline for regedit (regedit /e "target file" "source key") I export it into a folder creating a new .reg file for each key read from the file. Now in my .txt file there are around 11,500 keys. The keys are successfully exported till 5450, but after that calling CreateProcess on regedit returns error no. 1450 (no system resources) and all the subsequent keys are not exported into the target folder. What could be the reason for this error to come up? And how should I change the logic so that this error doesnt come up and all the 11500 keys are exported as different .reg files into my target folder? Thanx.

      B Offline
      B Offline
      bob16972
      wrote on last edited by
      #2

      vipin_nvk wrote:

      no system resources

      Are you closing the processes after each one is used. Windows has a resource limit of 10,000 resource handles 10,000 limit[^](or something like that) per process and if your spawning outside processes, they may count against your main process. I'm not sure how the rules work with spawned processes. However, be informed that a resource handle can include pens, brushes, windows, etc... and depending on the type of windows or controls being created, you can hit the resource limit pretty quick. Try closing things that might maintain handles to resources once you are finished with them as it sounds like their being maintained somehow. Here are some links about resource handle limits... Concerns about resource handles and Raymonds words on the matter[^] Window Manager limits[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups