[V4MD Client] no error on bad connect
Martin Wright
martin at kinetix.co.uk
Fri Jul 9 10:40:42 CDT 2004
Hi
The OpenDatabase() returns 0 even if I try opening a Vserver with an
impossible IP address.
set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "",
mySerialNumber)
OpenDatabase( gMyDB, dbPath )
err = ValentinaError()
errStr = ValentinaErrorString()
put "err = " & err
********** Message window ************
* V4MD *: Create_VDataBase...* V4MD *: DB_New...done
* V4MD *: OpenDatabase...done
* V4MD *: ValentinaError...done
* V4MD *: ValentinaErrorString...done
-- "err = 0"
How can it return 'OpenDatabase...done' when there is no Vserver.
Or is there another (very quick) test I can do after OpenDatabase() to make
sure it connected successfully.
Martin
On 7/7/04 1:48 PM, "Martin Wright" <martin at kinetix.co.uk> wrote:
> Hi
>
> When I try to connect to a Vserver with a wrong IP address I get no
> error, so I can't trap it.
>
> set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "",
> mySerialNumber)
> err = ValentinaError()
> errStr = ValentinaErrorString()
> OpenDatabase( gMyDB, dbPath )
Hi Martin,
Igor says that you must check error AFTER OpenDatabase() call, Because
OpoenDatabase() try conenct.
Constructor of Vdatabase just create object in RAM.
--
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
-------------------------------------------------------------
_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list