[V4RB]OpenDB(classesWay) in Server
Ruslan Zasukhin
ruslan_zasukhin at valentina-db.com
Fri Jan 15 05:24:31 CST 2010
On 1/15/10 12:07 AM, "Karl Grob" <kgrob at mus.ch> wrote:
Hi Karl,
Most probably you have quite old code.
And you have catch in trap mentioned on this list in last 6 months dozen
time:
REALbasic have change syntax for calls of super constructor.
Please check V4RB 4.3 Example/Class_way to see how it should be in the
MyDatabase and a myTable classes
> I have a problem with a rather complex DB:
> It is constructed (and filled) in single mode and classes way. I then put it
> into the server directory. VStudio is able to open it, but I cannot open it in
> Realbasic. I am able to find the Database, but the Tables are all NIL.
>
> ------
> Sub openDB_Server
> dim location as folderitem
> Valentina.InitClient()
> isClient = true
>
> dim myConnection as VConnection = NEW VConnection(kgsURL, "xxx", "xxx")
> myConnection.Open
>
> if myConnection.IsConnected then
> myDB = NEW clMyDB(myConnection)
> location = GetFolderItem(clMyDB.myServerName)
> mydb.Open(location)
> else
> MsgBox "Verbindung zum Server klappt nicht"
> end if
>
> -----
> NEW clMyDB:
>
> Super.Constructor(inConnection)
>
> //ConstructorCommon
>
> -----
>
> In this way, I can find the DB on the Server (Debugger gives the correct
> name), but if I try to run the ConstructorCommon and thus instantiate the
> Tables, the Programm quits without any Exception. If I go through the
> table-Constructors step by step, I can go quite far without the quiet crash.
> It seems that there is too havy traffic.
> BTW: the largest table has 3'300'000 entries.
>
> Is there a solution?
--
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