Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone else losing object references during runtime?
Message
 
 
To
25/09/1998 10:42:34
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00140817
Message ID:
00143177
Views:
33
I have had similiar object references getting lost. For example in the following code the RemoveObject will fail once in a while--object reference is not found, or similiar message. However, it is **very** rare, and I can never repoduce it.

=AMEMBERS(gaPropArray, THISFORM, 2)

* Loop through the array of name objects
FOR i = 1 TO ALEN(gaPropArray,0)
* Check if the container screen is already defined
IF UPPER(ALLTRIM(gaPropArray[i])) = "CNTSCREEN"
* The container screen object is defined, so remove it
THISFORM.RemoveObject("CNTSCREEN")
ENDIF
ENDFOR

Regards,

--Paul

>We have an error where we randomly have a screen disappear (apparently from memory). Has anyone else seen this behavior?
>
>Process:
>We call the screen, select a record on the screen and click on the screen. It vanishes. If we try to call the screen again from the menu, it gives us an Object not found error, meaning the reference to this object disappeared. 90% of the time, this does not happen. It happens more frequently on Pentium Pro machines. It can be duplicated on any machine by starting about 10 copies of the program first and leaving them open while running the 11th copy.
>
>Background: We have an application that uses a framework that we modelled on the framework that was used in the revolutionary guide to VFP. While we are running the program, we randomly get XXXX is not an object, where XXXX is the same object every time. It is also an object high up in the hierarchy of our framework.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform