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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:40:43+00:00 2026-06-16T00:40:43+00:00

I was doing some research on the amount of windows handles that an application

  • 0

I was doing some research on the amount of windows handles that an application can use. I’m using Delphi XE2 and using the AllocateHWnd routine which creates an invisible windows handle by using CreateWindowsEx for receiving and processing of windows messages.

I have found some interesing stuff and I would like to know from the experts why such behaviour.

When creating a service application I can reach up to 2220 handles on a Windows 7 machine, if I activate the option “Allow the service to interact with the desktop” in the service configuration I can reach about 9823 handles!

Windows 2008 runs the same way, I can create ~2220 handles on a non-interactive service and over 9000 on interactive service

I have tested on a Windows 2012 server and even with interactive service flag turned on I can’t create over 2050 handles… Why such limitation and how could I increase it?

I know that a software that uses that much handles is a poorly designed one, but we are testing this for a software that has intensive TCP/IP connection processing which requires many handles to handle inbound and output TCP/IP connections

If my application is a regular desktop application then I can create over 9000 handles even on windows 2012, so, why such limitation on service applications?

  • 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-06-16T00:40:44+00:00Added an answer on June 16, 2026 at 12:40 am

    Sounds like you face the “desktop heap exhaustion” syndrome.
    An excellent explanation about it can be found on Ntdebugging’s Blog:

    • Desktop Heap Overview
    • Desktop Heap, part 2
    • Talkback video: Desktop Heap
    • The default interactive desktop heap size has been increased on 32-bit Vista SP1

    Anyway, as @DavidHeffernan said, it’s better to redesign your app 🙂

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

Sidebar

Related Questions

I am doing some research in the way i can deploy an application efficiently
I am doing some research on developing thread safe applications. I know users can
I’m doing some research into the capabilities of Windows Azure for an European company.
I'm doing some research with an interactive shell and using a Django app (shell_plus)
I have been doing some research and still can't find a solution to my
I've been doing some research into various graphing APIs for use in a social
I am doing some research into the Memento Pattern and it seems that most
after doing some research it seems that AppDomains are not really a tool for
After doing some research, everyone seems to advise learning and using some form of
Hi so i was doing some research in the library so i could use

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.