PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Too many controls and/or windows in the application (9999).
Too many controls and/or windows in the application (9999).
Débuté par Alex, 15 avr. 2024 20:49 - 2 réponses
Posté le 15 avril 2024 - 20:49
Hi everyone,

I got to the bottom of the problem I was asking about some time ago. I was asking if anyone experienced:

"<xxxxxxxxxxxxx> was not created by Windows" error

In WD 2024 this message was additionally extended by:

"The Sheet1 control (Tab type) has not been created for the following reason:"
"Too many controls and/or windows in the application (9999)."

We have rather complex forms for different documents. It seems that after opening 6-7 of those forms and leaving them open user exceeds some kind of Windev limit. In Windev help it is stated that the limitation per window is:

"Maximum number of controls per window Greater than 5,000.
This limit can be less depending on the operating system used."

and no other limit for the application level has been defined.

Any ideas? Any help is appreciated.

Thanks again,
Alex
Membre enregistré
80 messages
Posté le 21 avril 2024 - 13:07
look how many controls are on a sheet, and then calculate how many controls will be open in the window if you have a few of these sheets open at the same time. You could then limit the number of open sheets to a value less than 5000 controls.
If different sheets have different no of controls ( internal windows), You could also hold a global count of controls and then do the same - require sheets to close before more are opened.) This will also help with memory management.

You will be surprised at how easily you can reach 5000 controls per window.

--
Ben Dell
Riebens Computers Pty Ltd
Southern Africa PcSoft Distributor
www.windevsa.co.za
PcSoft Sales, Support and Training
Message modifié, 21 avril 2024 - 13:09
Posté le 25 avril 2024 - 21:50
Thanks Ben,

I will try to optimize it. I do not think it is a single window limit, it seems that it is cumulative number of controls on all open windows that causes the problem.

Regards,
Alex