Stefano Alderotti


Hi,

I have problems on some functions [at first RLOCK()] when i try to access on a DBF file on a Vista Shared Folder from another Vista PC.

If I try to access or execute Rlock() function, from XP on Vista or from Vista to XP, i have no problems.

When i try to execute Rlock() on this file from Vista i have an "Error Reading File" only when another used already use this file. (Local user open this file in Share, network user try to rlock a record and will have this error).

Can you help me

[excuse my maccheroni english]





Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

dni


Assuming both users have same rights, is the DBF file opened as "SHARED" and set multilocks on





Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

Stefano Alderotti

Hi,

Yes, DBF File is open in shared mode and multilock is on







Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

dni

Then check if "network user" has same access rights like "local user". In Vista security access is different....I don't think is a vfp issue anyway I had the occasion to refresh my mind :

http://msdn2.microsoft.com/en-us/library/aa975797(VS.71).aspx






Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

Stefano Alderotti

If i use any other OS i didn't have this problem (only from Vista on Vista. If I use Vista on a XP shared folder or XP on a Vista shared folder).

My sets:

set debug off

set talk off

set safety off

set status off

set deleted on

set confirm on

set bell off

set scoreboard off

set date italian

set multilock on

set decimal to 6

set point to ','

set separator to '.'

set escape off

set reprocess to 1

set dohistory off

set century on






Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

dni

You may log on as administrator to see what is happening.... You may try to put set multilocks off...Can you show the piece of code whwre are you using rlock May be the problem will be solved with SP2 for Vfp who has Vista support.






Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

Stefano Alderotti

in debug the problem is on rlock() line.. status bar say "waiting for lock..." noting happened until the error.

i do it with the administrator (UAC Disabled)

SP2... c_c ...when






Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

Naomi Nosonovsky

You may want to test beta VFP SP2 and see if the problem is solved. Beta SP can be downloaded from

http://www.microsoft.com/downloads/details.aspx familyid=05a0e7c9-43c1-417f-8810-ae7d7c66bac8&displaylang=en&tm

You would probably need to disable UAC before installing it.





Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

dni

SP2 will be soon, as I remember in august...




Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

Stefano Alderotti

No, i don't think with SP2 i can resolve this problem because it isn't a problem of fox. This is a problem of vista.

I find this article (http://support.microsoft.com/kb/935366/en-us) that speak about microsoft access, but i think is the same problem of DBF file.

I will try this hotfix today.






Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

dni

You may try to put set multilocks on and don' t use rlock functions to see what is happening....because many commands include rlock...

http://msdn2.microsoft.com/en-us/library/aa975797(VS.71).aspx






Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

Naomi Nosonovsky

Please let us know about your findings. BTW, you may want to unmark the solution, so we can see that the question is still opened.



Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

Stefano Alderotti

i find the solution.

http://support.microsoft.com/kb/935366/en-us

This hotfix resolve the problem.

Thanks to all






Re: RLOCK on a DBF file on a Windows Vista Shaded Folder

dni

Congratulatios!!! ....(but that is not vfp related)