What are the steps to create a remote DB?

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Mar 23 20:06:30 CST 2006


On 3/23/06 7:31 PM, "Kevin Windham" <kevo at gatorgraphics.com> wrote:

Hi Kevin,

> I am trying to use V4RB to create a remote DB on the server. I think
> I am missing a critical step.
> 
> Here is my code.
> 
>    dim DB as VDatabase
>    dim file as FolderItem
> 
>    DB = new VDatabase("server","sa","sa")
>    file = GetFolderItem("bizDB")
> 
>    try
>      DB.Create(file, EVDbMode.kDsc_Dat_Blb_Ind, 32 *1024)
>    catch Verr as VException
>      MsgBox Str(Verr.ErrorNumber) + ": " + Verr.Message
>    end try
> 
> This simply causes my app to quit with no error. If I run in the
> debugger, my app crashes. In the docs it mentions that the folderItem
> should be the name of a registered database, but looking at the
> registerDatabase method, it seems to suggest this is for pre-existing
> DBs.
> 
> I tried the same code except using DB.open and I got an exception
> stating that I have an invalid database name, so I think I am
> connecting to the server fine.
> 
> What am I missing?

May be you use different versions of server and client?

Enable Valentina.DebugLevel, I think crash happens because you have ignore
some error on connect, and continue try access not existed objects

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