Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Too many windows
Message
From
12/06/2018 18:52:38
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
12/06/2018 14:49:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 10
Miscellaneous
Thread ID:
01660684
Message ID:
01660700
Views:
74
>>>>Hi all
>>>>
>>>>I just started on a VFP 6 project and we're occasionally seeing the error message "Too Many Windows Open". I've never seen it before, and haven't used VFP 6 in a very long time. The wiki says this is an untrappable error. Error 1116.
>>>>
>>>>What kind of windows can these be? I've run test cases where we instantiate 1000 form objects without trouble. Is there a setting that can increase the limit?
>>>>
>>>>Thanks
>>>>
>>>>Mike
>>>
>>>Perhaps a memory leak? Perhaps SYS(3050) to explicitly set memory buffer size might help? IIRC the memory management in the runtime gets sloppy when 2GB (or more) RAM is present.
>>
>>You're right the mem mgmt gets sloppy, but we tried and it made no difference:
>>SYS(3050, 1, MIN(536870912, VAL(SYS(3050, 1, 0))))
>>SYS(3050, 2, MIN(536870912, VAL(SYS(3050, 1, 0))))
>>
>>and even cutting it down by 2 and then by 4 and no difference. It's only happening on one of the VMs. So comparing the VM settings on that is next.
>>
>>Thanks
>
>One thing I do recall is the return value from SYS(3050) could sometimes be negative (probably because it's returning a signed 32-bit value, so any amounts >=2^31 do not get reported correctly), so basically use something like:
>= SYS(3050, 1, 134217728)
>= SYS(3050, 2, 134217728)

Tried those, but no dice. I also blanked the config.fpw settings as we do in VMP and as advised here: http://rickschummer.com/blog/2008/06/vfp-include-configfpw-in-exe.html Still no good. It's even happening on my VM. I tried reducing the video resolution and removing the persistent bitmap caching.
BITMAP=OFF in the config made no difference. It's vfp6. It seems the app runs in 9 no problem and of course, it does not show this behavior in 9.
Previous
Reply
Map
View

Click here to load this message in the networking platform