Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form controls sometimes invisible
Message
 
To
10/07/2009 13:04:17
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01409187
Message ID:
01411469
Views:
56
Hi Gary,

>1. The forms seem to be really releasing, i.e., _screen.forms increments and decrements as it’s supposed to. When a form is released the _screen.formcount goes down and the name disappears from the _screen.forms collection.

A safer way to find out if a form is releasing is to track Init and Destroy events. When an object remains in memory in almost all cases its Destroy event is not firing. Dangling references can be the result of FOR EACH loops on a collection without the FOXOBJECT clause,.

>2. The problem form has a pageframe with nested containers and controls, but even removing the entire pageframe makes no difference in the behavior

Could it be something in the dataenvironment? Maybe some form is locking a record and not releasing the lock which - for some unknown reason - confuses VFP. Other than that my only idea would be to remove one piece of the standard framework at a time until the form behaves properly.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform