Submitted by Armando on 2009/09/21 15:49
I also tried with a New DB.
 
I know there was an issue with opening several grids... is 6-7 the upper limit ? I thought it was more than that.
 
Anybody else can confirm that problem ? (I can provide a screencast on demand)

Comments

I just opened 14 grids without a problem...
  • Did you try this on a new installation?
  • What theme are you using?
The reason I ask is that I used to supply a skin file (appfiles\xp-standard.txt) which caused a similar issue
 

Armando

2009/09/21 16:50

In reply to by Pierre_Admin

I tried different themes, with the same results. However, if I close the Properties and HTML pane, I can add one more grid. That makes 7 opened grids max.

But I think I discovered what the problem is... The problem seems related to GDI objects. Here, IQ uses an unusually high number GDI objects (7 opened grids and I'm over 10.000) and saturates XPs default capabilities...
 
I really wonder how you can open 15 grids... Are they completely empty ? I thought 10 000 GDI objects was the default, even in Windows 7 (according to wikipedia). Unless your IQ consumes less GDI objects for some reasons.
 
I'm in a 32 bits resolution, Windows Classic Style...
 
I could try increasing the upper limit for GDI objects, but...

Pierre_Admin

2009/09/21 17:12

In reply to by Pierre_Admin

It got to 40 (using the sample file) and grids were still opening just fine. I quit,

Armando

2009/09/21 17:30

In reply to by Pierre_Admin

Well... What can I say... Keith seems to have an upper limit too...
 
Are you using the portable install ?
 
Could you guys check how many GDI objects is IQ using ?
 
Task manager : view -> Select columns --> GDI Objects. Then look at the InfoQube process, in the process tab.
 
----------
 
After modifying the GDI limit in the registry, I can now open 13 tabs... But that's all -- yes that's a potential (albeit a bit dangerous) solution.
 
For 6 tabs with the sample DB, no panes open : GDI objects = 8000 to 9000 (depending on the opened grid : gantt uses some more GDI objects.)
 
For 13 tabs  : 19000 to 20000
 
Am I alone in that situation ? and if yes, why on earth would IQ use more GDI objects on my computer ?

jan_rifkinson

2009/09/21 17:50

In reply to by Armando

[quote=Armando] [snip]
Are you using the portable install ?
 
Could you guys check how many GDI objects is IQ using ?
 
Task manager : view -> Select columns --> GDI Objects. Then look at the InfoQube process, in the process tab.[/snip][/quote]
 
Armando, et al
I opened 15 grids
I am using portable v924g with / on HP Blackbird Vista Ultimate SP-2
I opened Windows Task Manager, looked under View tab but couldn't find any way to select columns so I can't be of much help here. If you can tell me what I'm doing wrong i'll be happy to go back & get GDI Object # for you. Sorry
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-2

Armando

2009/09/21 18:22

In reply to by Armando

OK, rejoice everybody -- well, if you don't, I will !
 
 
I discovered what the problem is.
 
Too many icons in the  \icons  file.
 
I recently imported icons there to try different designs, and since IQ loads all icons at once for each grids, it resulted with a huge amount of GDI objects used. Now, with 12 opened grids, I have less than 5000 GDI objects. A lot, but quite acceptable I guess for such a complex app !
 
 
I'll add a warning in the icon part of the manual...

Pierre_Admin

2009/09/21 22:16

In reply to by Armando

Yes..., that reminds me that I should load icons on demand, not load all icons when I open a grid. Requires a bit more code, but will be more efficient
 
Thanks Armando for pin-pointing up that one!
 

Armando

2009/09/21 22:29

In reply to by Pierre_Admin

> that reminds me that I should load icons on demand, not load all icons when I open a grid. Requires a bit more code, but will be more efficient
 
Yes, most probably... But at the same time, who needs 1100 icons in the icon folder...? 
 
 
>Thanks Armando for pin-pointing up that one!
 
You're welcome... Hopefully, every squashed "bug" / problem solved is a small victory... And brings us closer to v.1.0 !!

jan_rifkinson

2009/09/21 19:12

In reply to by Armando

17 grids w 3,868 GDI Objects
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-2

Armando

2009/09/21 19:25

In reply to by jan_rifkinson

Thanks Jan. That's even lower than me ! I wonder why... In any case, if you've read my previous post : problem solved ! It took a while but I'm happy to have this sorted out.  I can move on...

reesd

2011/10/31 12:33

In reply to by Armando

[quote=Armando]
Thanks Jan. That's even lower than me ! I wonder why... In any case, if you've read my previous post : problem solved ! It took a while but I'm happy to have this sorted out.  I can move on...
[/quote]
 
3,800 is still a lot of GDI, especially under XP which caps at 10000 by default. I started a thread on GDI usage in general at - GDI usage [FIXED 0.9.25W4?].

I opened 15 grids w "g"
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-2

Armando

2009/09/21 16:12

In reply to by jan_rifkinson

hmmmm... I'm using the latest build and Office 2007 Theme.
 
> I opened 15 grids w "g"
 
What do you mean, Jan ?
 

Pierre_Admin

2009/09/21 16:37

In reply to by Armando

I think he means "with version G"
 

I got mine to freeze solid after approximately 24 grids. 
 
I'm running win7 64bit.  By the way, in normal use, I rarely have more than 6 grids or so open.