DBF to array, or memory

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: DBF to array, or memory

#11 Post by Eugene Lutsenko »

Victorio!

You can still measure the size of the database and change date without opening it (as a file) and copy it only if it is closed and the size and date changed, i.e. the base is updated

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: DBF to array, or memory

#12 Post by Cliff Wiernik »

If it is only opened exclusively for a short period of time, are you able to poll the file and attempt to open and pause until it is available shared.

Cliff

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DBF to array, or memory

#13 Post by Victorio »

Ok, but it is not problem for me, if file is open exclusive, I can provide it in my source.
Problem is, when I can open and open file and "other" app in VFP just in this time want open exclusive. This I cannot prevent. It is not possible, only with some low level system function, which can monitor attempts for exclusive use in network and if this happens, immediately close file in my program and release dbf for other user.

This can be complicated, then I leave it as is, with copy file for short time and small risk to collision with other program.

Also I try again send author this VFP app request to modify his app to change ESCLUSIVE to SHARED, or to put several attempts to open dbf, when not possible. Enough 2-4 rows of code and problem can be solved.
He has in source code only USE database1 EXCLUSIVE ALIAS "ddd"
without control if dbf really opened.

Thanks for all.

Post Reply