-
Hi Anonimos ,
The metode remain same ,
My way is , instead repeat until , open form by showmodal that stay on top as long the file is lock.
This way the routine is wait till the showmodal is closed.
On the form you can show message that file is lock and some other indications that the user could see action ,
also put cancel button on form that allow user to stop the try...
2010-01-04 22:55:52 UTC by omersoft
-
I have been writing apps for years in BP7. Can you share how Delphi
handles files locking showing a simple example......
Do we still do a:
BTLOCKFILEBLOCK(file_ptr);
BTPutRec(file_ptr);
BTUNLOCKFILEBLOCK(file_ptr);
Is this correct? If 2 workstations try to write at the same moment, how do
write the retry of the locking routine? In BP7, I would have the...
2010-01-03 22:41:55 UTC by digikid
-
Yes, I understand. If the changes (i.e. method signatures, type definitions, etc.) aren't properly ifdef'd so the source is still portable across versions then it can't be integrated into the codebase.
2009-12-29 18:59:58 UTC by aaron
-
NO !!
It"s Not IFDEF Compiler Directives
The Changes Done On The Filer Source Units !
For example in unit BTisbase
IsamFile = packed record
Handle : TbtfHandle;
Name : array [0..IsamFileNameLen] of char;
IsLocal: boolean;
end;
in d2010 the define is
Name : array [0..IsamFileNameLen] of Ansichar.
2009-12-29 17:55:30 UTC by omersoft
-
Avi, are these changes IFDEF'ed? Do you have a patch?.
2009-12-24 20:07:01 UTC by aaron
-
Hi,
Thas anyone implement btfdataset in d2009 / d2010 ?
My btfdataset that work from 2003 based on stuff that collected from Eric T. Harmon , Maciej Hajewski and from Olaf Asholz and Jens Erbe dataset.
when compile the dataset unit i found that delphi 2010 db unit thas not Buffering the record by PAnsiChar. I made some testing to read the record , not suceed yet.
I Have To Stop now...
2009-12-24 18:31:14 UTC by omersoft
-
Hi,
I made some testing with d2010
after adjusting the ansi issues (look at the messages above)
b-tree filer passed the compiling.
then before open file and getrec i adjust the file record
structure,
In the record define fields that define as char in d7
need to define as ansichar (since in d2010 char is 2 bytes).
file open and getrec work fine. (when opening the file verify.
2009-12-24 17:54:14 UTC by omersoft
-
re: google accounts person... no, but i have incorporated some minor mods to get it to compile in FreePascal if that helps at all:
http://github.com/ahamid/btreefiler.
2009-12-23 06:20:54 UTC by aaron
-
- updated to build on win32
- added Lazarus lpk package
- added basic fpcUnit test
the attached patch does not included binary files (mostly generated Lazarus resources, project files, etc.), so it is not complete
...is anybody active on this project to consider merging this in?.
2009-12-20 06:04:59 UTC by aaron
-
Can this be (or has this been) merged in? I think it's just a few defines that equate Free Pascal with a certain version of Delphi. In any case, it made it possible for me to build with Lazarus on Vista.
http://community.freepascal.org:10000/bboards/message?message_id=334226&forum_id=24081.
2009-12-19 21:51:54 UTC by aaron