data base errors -- 1.x documentation

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jun 29 08:14:00 CDT 2006


On 6/28/06 9:52 PM, "Jennifer Hall" <jennifer at jennifershall.com> wrote:

> but it doesn't work that way
> it opens just fine and does not return an error
> 
> this is the code - no error on second open
>   openDatabase(pDB, dbpath, 4)
>    err = ValentinaError()

>   openDatabase(pDB, dbpath, 4)
>    err = ValentinaError()

But this is not correct test.
You try open for the same pDB object!
So second open for the same object do nothing in v1.
In v2, we are more strict and return error "already opened"
In v1 you can test db IsOpen


-----
But as I understand, you want feature -- when SEVERAL .exe files
Will try open the same db files. Right ?

To test this you need produce 2 EXE file and test to see how this works.

Or you can do 

   openDatabase(pDB, dbpath, 4)
    err = ValentinaError()

   openDatabase(pDB2, dbpath, 4)
    err = ValentinaError()

I.e. Use 2 different db objects pdb and pdb2


-- 
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