Steve
Steve

Reputation: 652

how do I programmatically get GDI and User Object count in Delphi?

I have a program thats starting to reach the 10,000 User Object limit. When I force it to go over the limit the program crashes. I could have my users change the registry entry but that is a awkward thing to ask a customer and many are not given access to the registry.

I can see the value in Task manager but I would like to get the value in my application. Is there any way to get those values programmatically?

OK I am now ready for all the comments about how only a badly written program needs that many objects ;>)

Upvotes: 3

Views: 2598

Answers (1)

Free Consulting
Free Consulting

Reputation: 4402

Call GetGuiResources. Pass GetCurrentProcess() as parameter

Upvotes: 10

Related Questions