Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With / return
Message
From
22/12/2006 15:35:54
 
 
To
22/12/2006 15:25:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01179821
Message ID:
01179843
Views:
9
I used Return/Exit within With... Endwith countless number of times and never got C05... errors.
The bug-proof practice in regard to object references: if you have any form properties linked to an object then all of them should be set to .NULL. in Form.Destroy event.

>Hello Hilmar
>
>http://doughennig.blogspot.com/2006_04_01_doughennig_archive.html
>
>I'm working with VFP7 and still have C5 even after following Doug's suggestion.
>
>Perhaps all c5 could be cleared in VFP9. Don't know yet but I'll have VFP9 in the coming weeks. Just reply to me and then I'll remember to keep you posted on my findings when I have VFP9.
>
>>Title: with / return
>>
>>I heard that having a RETURN command within a WITH-ENDWITH can cause C...5 errors. If I understand correctly, this is supposedly caused by some internal object reference which is not cleaned up.
>>
>>Now, before reviewing and cleaning up all my code, I have a few questions:
>>
>>1) Would this also apply to breaking out of a WITH-ENDWITH, with an EXIT command?
>>
>>2) How about replacing WITH with an object reference? For example, let's say I replace a long reference like ThisForm.PgfMainPageFrame.Page1.Grid1.Column3, with an object like loColumn. I suspect any references will get cleared when the variable gets out of scope, so there should be no problems. Any opinions?
>>
>>3) I am still using VFP 6 (sigh). Might this be a bug that was corrected in later versions, or does it affect all VFP versions so far?
>>
>>TIA,
>>
>>Hilmar.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform