[V4RB] Subclassing VDatabase
Christer Olsson
christer at ljusaideer.se
Mon Jul 24 23:39:05 CDT 2006
>On 7/24/06 11:47 PM, "Christer Olsson" <christer at ljusaideer.se> wrote:
>
>> We have used the following code in the constructor of our subclassed
>> VDatabase:
>>
>> VDatabase( serverAdress, app.kDatabaseID, app.kDatabasePW, serverPort )
>>
>> which we now have changed to
>>
>> connection = new VConnection(serverAdress, app.kDatabaseID, app.kDatabasePW,
>> serverPort)
>> VDatabase( connection )
>>
>> This code compiles, but when we run it we get a silent crash at
>> VDatabase( connection )
>>
>> I can't find any docs for the correct way to do this, other than a mail from
>> Ruslan July 10, but that's rather brief.
>
>Please look into V4RB/Examples/Class_way
>They have pluses ...
>
>Not sure, but it seems you need at first open connection, then create
>database object
OK. Got it working now. But the connection process takes a rather long time. Opening a database on the server used to happen almost instantly, and now it takes about 15 seconds to make a connection and open a database from my Macbok Pro (intel) on our G4 server.
--
*************************************************************
Christer Olsson PO Box 9160 Phone +46 40 25 85 85
Ljusa Idéer AB SE-200 39 Malmo Fax +46 40 25 85 89
Kantyxegatan 5 Sweden http://www.ljusaideer.se
More information about the Valentina-beta
mailing list