Maximum capacity reached.

Questions about MultiCharts and user contributed studies.
youn56
Posts: 46
Joined: 29 Mar 2012
Has thanked: 13 times
Been thanked: 6 times

Maximum capacity reached.

Postby youn56 » 01 Aug 2013

Hi,

I've reached the maximum capacity of 9500 active GDI objects. Is there any solution to increase this limitation of 9500 ?

Best regards.
Attachments
bug.jpg
(13.66 KiB) Downloaded 1148 times

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: Maximum capacity reached.

Postby ABC » 01 Aug 2013

This is probably connected to the default 10000 GDI objects limit per process in Windows. You might be able to raise it via the registry.
Before you do that I would suggest trying to open another instance of Multicharts first and see if this brings you another set of 9500 GDI objects within this instance.
Out of curiosity how many chart windows did you open?

Regards,
ABC

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Maximum capacity reached.

Postby TJ » 01 Aug 2013

Hi,
I've reached the maximum capacity of 9500 active GDI objects. Is there any solution to increase this limitation of 9500 ?
Best regards.
Do you find the MultiCharts running very slow?

If so, you might have a bug in your code.

youn56
Posts: 46
Joined: 29 Mar 2012
Has thanked: 13 times
Been thanked: 6 times

Re: Maximum capacity reached.

Postby youn56 » 01 Aug 2013

I had about 80 charts opened.

I just restarted my computer and didn't have the message again !

My MC isn't running slow but regulary, it doesn't work correctly. I think than my code is correct. I just tried today to increase my charts opened from 57 to 80.

Thanks for the help.

User avatar
piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times

Re: Maximum capacity reached.

Postby piranhaxp » 02 Aug 2013

My MC isn't running slow but regulary, it doesn't work correctly. I think than my code is correct. I just tried today to increase my charts opened from 57 to 80.
Busy man :)

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Maximum capacity reached.

Postby Andrew MultiCharts » 09 Aug 2013

I had about 80 charts opened.

I just restarted my computer and didn't have the message again !
The number of GDI objects will be increasing as time passes.
My MC isn't running slow but regulary, it doesn't work correctly. I think than my code is correct.
If your script doesn't behave the way you expect it to, please print how it is working (trace conditions checking, order generation, etc.). You can find an example here.

rjelles
Posts: 36
Joined: 04 Feb 2010
Location: Calgary, AB Canada
Has thanked: 7 times
Been thanked: 19 times
Contact:

Re: Maximum capacity reached.

Postby rjelles » 11 Aug 2013

Below is a good reference on increasing the GDI objects limit. The maximum possible value is 16384, but you may hit the Windows paged pool limit before this (see Mark Russinovich's column here: http://blogs.technet.com/b/markrussinov ... 22423.aspx)

http://weblogs.asp.net/mikedopp/archive ... imits.aspx

Also here is an excerpt from the above link with the GDI registry setting:

In the left hand pane of the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows. In the right hand side, you will see two REG_DWORD values, named “GDIProcessHandleQuota” and “USERProcessHandleQuota”. We will need to modify both of these.

The first key we will want to modify is “GDIProcessHandleQuota”. This keys value can be set between 256 and 16,384 (maximum), and the default value is 10,000. I’d recommend using 15,000 as a value for this key, however if you are doing a lot of multitasking, shoot for the stars and go with 16,384.


Return to “MultiCharts”