Thank you. My application locks record in both aliases. Changing UNLOCK command to
UNLOCK ALL
command fixes this problem.
Btw, I described also the following problem:
"Application toolbar docked to upper or lower border in screen is not visible in VFP 9 application running under Windows 98"
I think this is always reproducible.
Shoult I report this to Microsoft as bug ?
>We have had a report where this happens if you use a table then use the table again, and lock records in both aliases.
>
>Is this what your application does?
>
>See thread 981159, there is a workaround listed in the thread as well, using UNLOCK RECORD
instead of UNLOCK.
>
>>I have a reproducible case where UNLOCK command causes VFP 9 to hang.
>>
>>I issue RLOCK() in a buffered table containing single added row, check for duplicate key and then issue UNLOCK. I open this table under different aliases.
>>
>>Processor usage goes to 100% forever and my application hangs in the UNLOCK line. I tested this in Windows 98 and in Windows XP .
>>
>>Same code running under VFP 8 and earlier versions works OK. Also If I change RLOCK() to FLOCK(), the problem does not occur.
>>
>>Any idea how to fix this ? Replacing RLOCK() with FLOCK() is not possible since this causes big delays in a heavily accessed multi-user table.
Andrus