Hi Sergey.
>Check _VFP.AutoYield setting. I would bet it's .T. in development and .F. in application. Take a look at help for _VFP.AutoYield to understand imlications of changing it.
BULL'S EYE !!!
You saved me many hours tracing the framework.
Read the help for AutoYield, understood it, set it to true just before the routine, and as you bet it, it worked just fine.
Muito obrigado.
Ivan