Hi,
I've reached the maximum capacity of 9500 active GDI objects. Is there any solution to increase this limitation of 9500 ?
Best regards.
Maximum capacity reached.
- ABC
- Posts: 721
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 409 times
- Contact:
Re: Maximum capacity reached.
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
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
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Maximum capacity reached.
Do you find the MultiCharts running very slow?Hi,
I've reached the maximum capacity of 9500 active GDI objects. Is there any solution to increase this limitation of 9500 ?
Best regards.
If so, you might have a bug in your code.
Re: Maximum capacity reached.
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.
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.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Maximum capacity reached.
The number of GDI objects will be increasing as time passes.I had about 80 charts opened.
I just restarted my computer and didn't have the message again !
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.My MC isn't running slow but regulary, it doesn't work correctly. I think than my code is correct.
-
- Posts: 36
- Joined: 04 Feb 2010
- Location: Calgary, AB Canada
- Has thanked: 7 times
- Been thanked: 19 times
- Contact:
Re: Maximum capacity reached.
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.
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.