VServer beginner questions

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Sep 19 21:35:20 CDT 2004


On 9/19/04 9:12 PM, "erne" <ernestogiannotta at tiscalinet.it> wrote:

> in that example I see you build a folderitem with function
> f = GetFolderItem("new DB")
> and use it to create/open as DB
> 
> but that function will point to a Folderitem named "new DB" located
> into the folder containing the running app while actually the DB is
> located into the Databases folder of ValentinaServer... this is a lot
> confusing
> 
> a string would be the appropriate parameter to pass in this case
> or let us define where a new db should be created passing a folderitem

No, because then we will have different syntax from LOCAL version.


> I see you allow a path parameter when registering a DB to the server so
> why must it live into the Databases folder?

Consistent of API.

Register() exists only in the Client.
It not exists in the LOCAL.


> BTW what's the Server behaviour when client attempts to create a DB
> with a name that's already in use into the databases folder?

I don't know. I think will be error of OS 'cannot create file'

> can we put an alias into Databases folder and pretend it will be seen
> by the vServer?

Not sure.

In ideal we must make this work.

>> 
>>> why can't I look into the DB object in the debugger?
>>> (demo app crashes whenever I make such attempt)
>> 
>> Mmmm, in V4RB__Client example ?
>> 
>> Don't know.
>> 
> 
> yep! I select the Open menu item and put a breakpoint in the FileOpen
> menu handler... seems that the Database is succcessfully opened
> but if I try to inspect it in the debugger's props browser
> the app crashes

Ok, I will check this later


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list