[V4RB] Init and shutdown

Stan Busk maxprog at mac.com
Sat Mar 10 13:25:45 CST 2007


Hi,

My app is a document oriented app like Word, Excel... in other words  
my app documents are actually self contained Valentina DBs. I can  
open 1, 2, 3... documents a the same time, that is, several Valentina  
DBs at the same time. I want to offer to my customers the possibility  
to also open remote documents, documents registered with embedded  
server. I can't imagine why I couldn't do that. Right now I am able  
to instantiate a new VConnection, open it, instantiate a VServer,  
list all the registered DBs, all this with a local document opened. I  
have tried with several local documents open, switching back and  
forth and so far no problems. Note that I am not opening any remote  
DB yet.

stan

>
> On Mar 10, 2007, at 2:04 PM, Stan Busk wrote:
>
>> Hi,
>>
>> Is this correct to initialize Valentina this way:
>>
>> Valentina.Init( aCache, "V4RB-X-X-XXXX-XXXX-XXXX", "V4RB-X-X-XXXX- 
>> XXXX-XXXX" )
>> Valentina.InitClient()
>>
>> end shut it down that way:
>>
>> Valentina.ShutDownClient()
>> Valentina.ShutDown()
>>
>> The app is supposed to be able to open both local and remote DBs.
>
> It depends on what you mean.  I don't think it is possible to open  
> both local and remote databases at the same time.  If you want to  
> open either a local database or a remote database, then what you  
> must do is to call either Valentina.Init or Valentina.InitClient,  
> but not both.  It's possible to switch during execution by first  
> calling the appropriate Shutdown method, then the other Init method.
>
>>
>> Also is there some error checking for Valentina.InitClient() ? For  
>> Valentina.Init I use 'If Valentina.CacheSize = 0 then'...
>
>
> If either method fails, I hope that V4Rb raises an exception.
>
> Charles Yeomans
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list