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 602107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:47:13+00:00 2026-05-13T16:47:13+00:00

When I deploy my app on other machines, this error comes up: Now if

  • 0

When I deploy my app on other machines, this error comes up:

alt text

Now if I uninstall my app and re-install it, the error message does not come up. Has anyone else encountered this? I cant make sense of the stack trace either.

  • 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-13T16:47:13+00:00Added an answer on May 13, 2026 at 4:47 pm

    The diagnostic indicates that the native CreateWindowEx() API function failed. There are very few reasons for it to fail, the most common one is a gross mistake in the window procedure for the window. That certainly is not the case for the Form class, I’ve only ever seen Windows Forms programs fail with this error because the process exceeded its handle quota.

    To explain that is going to require some hand waving. First off, by default a Windows process is only allowed to create 10,000 handles, GDI objects and user32 objects. It is of course very unlikely that your program consumed that many right at start up. Seeing this happen when it is started by the installer is however a lead. Msi.exe gets special dispensation, it is allowed to create many more handles. I’ve seen it do this, the VS2008 service pack 1 installer I ran on an old unpatched version of XP got up to 500,000 handles about 2 hours after I started it before it decided a reboot was necessary to complete the install.

    Your installer would use CreateProcess() to start the program. It has an argument named bInheritHandles that determines whether or not the child process inherits the handles of the parent process. A possible scenario is thus that the installer consumes many handles, and that it has the bInheritHandles argument set to TRUE. Your WF program would then start with its handle quota already exceeded, creating another handle will fail. The SetVisibleCore() method is indeed the one that creates the main form’s Handle property.

    This is all conjecture of course, you should be able to see this for yourself with Taskmgr.exe, Process tab while the process is displaying the exception dialog. Use View + Select Columns and tick Handles, GDI Object and USER objects. An ultimate fix is going to require finding out why the installer is consuming so many handles. Or using a different way to start the program.

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

Sidebar

Related Questions

No related questions found

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.