Death on recreate

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Dec 28 23:37:15 CST 2005


On 12/28/05 8:31 PM, "Ed Kleban" <Ed at Kleban.com> wrote:

> On 12/28/05 12:07 PM, "Ruslan Zasukhin" <sunshine at public.kherson.ua> wrote:
> 
>> On 12/28/05 7:52 PM, "Ed Kleban" <Ed at Kleban.com> wrote:
>> 
>>> 5) I haven't tracked down the reason yet, but apparently when I already have
>>> a copy of my program running that is actively using a valentina database of
>>> a given name, running another program that attempts to create or open an
>>> database of the same name simply dies.  I'm assuming that it shouldn't do
>>> that?   What's the proper check to make for this condition?
>> 
>> This should be investigated more deep.
>> 
>> I think such issue exists only on OS X, because OS X do not have exclusive
>> file open mode. 
> 
> 
> Failure occurs on the following line:
>   
>     aProjDB.Create( f, dbMode , REALinsightApp.kValentinaSegmentSize )
> 
> where f is non-nil, read/write not locked, exists
> dbMode = 1
> segmentSize = 32 * 1024
> 
> No crash log, no report, no exception... just sudden death.
> 
> =====
> 
> Any suggestions of what checks, tests, etc I should/could perform?
> 
> I guess worst case I could keep a separate global file that all my apps
> check to see which database files they have open for use.

Yes such LOCK FILE -- is standard technique from *nix, which Apple also
suggest to use on OS X


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list