I had this issue with mvBase. I would kick off a server process to create some 
file but BASIC wasn't respecting Windows locks so it would start reading 
incomplete results. My solution (back in 2007) was to write a program that got 
the OS-level file status so that I could read the file only when it was really 
complete and unlocked. That "File Status" routine is still available on my 
freeware page:http://Nebula-RnD.com/freeware/(Most/All of the open source code 
has been migrated to https://bitbucket.org/foss4mv under NebulaWare.)That 
doesn't address a couple of the scenarios discussed here so far, but it does 
address others. I would hope that since jBase is closer to the metal that it's 
much more robust in this area, that we'd have some way to assert an OS-level 
lock when required, that we could check for OS-level locks in some more elegant 
way, and even that READU could be set to block on an OS lock rather than just 
using the DBMS lock table.
I'm still a noob with jBASE so it's possible all of this is buried in there 
somewhere.

HTHT

Charlie Noah wrote:
  

 

  Hi Richard,
 
 It's been my experience on 3.x that it totally ignores Windows locks, although 
the opposite may not be true. I can open a text document in Notepad++, open it 
in Jbase and then write it from either one. If I write it from Jbase, though, 
Notepad++ can detect that it has been written and load the new version 
(configurable, I  think). I don't think Windows can actually detect the Jbase 
lock, but rather sees that the file has changed. If Jbase can detect a Windows 
lock, I'm not aware of it - I'd sure like to know, though. I don't know about 
5.x.
 
 Also, I've found that I can lock a document (editing Basic source, for 
instance) in Jbase, and still open it in another Jbase window. I've had to 
implement special lock handling for that. Fortunately I'm the only one on my 
machine so it isn't much of a problem.
 
 HTH,
 Charlie
 Richard Kann wrote:  
Hi, 
 
 Jbase 3.x running on windows. Anyone know what jbase will do when it hits and 
open or read command on a file that windows has locked via carbonite or other 
programs? Would it go to the else statement or does it just sit and wait for 
the release? 
 
 I know it waits on a jbase lock but we are talking a third party program lock. 
 
 And for that matter would 5.x handle it any different? 
 
 RIchard Kann 


  

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to