>>>Can they lead to VFP9 crashes (especially since there is ActiveX involved)?
>>
>>Personally witnessed a returning local var changing datatype in calling function when issued from within with..endwith.
>>Uncertain if it was with vfp6 or vfp8 libs.
>>After that having only single return statement was given higher priority and a simple code scanner to find returns inside with was written, run directly after next release with manual fixes.
>
>Maybe related to this:
http://fox.wikis.com/wc.dll?Wiki~WithLeaksLocals ?
Could be, but I doubt it - the debugging of that error was done by a clever coworker and the reasons for the linked behaviour can be easily visualized. Don't have access to source control of that project any more..