V4MD : Connecting to a local DB AND to a server DB
possible ?
Steven Ophalvens
silversoft at skynet.be
Tue Aug 14 08:43:25 CDT 2007
Hi Ivan,
I did as you told me : closed & voided the connection object after I used it
and then
make a new connection object after the init() call. Seems that this is a
sure-fire way
to make Director exit with a fatal error :(
If I remove the call to .init(), it Works again as expected.
If I place the .init() call before the First attempt to connect to the db,
it fails
there as well ...
Is there a reason you should not reuse a connection object? All I do is
close() it
after I have done a certain block of code and later open() it again when I
need to
connect to the same db again.
Greetings,
Steven Ophalvens
-----Oorspronkelijk bericht-----
Van: valentina-bounces+silversoft=skynet.be at lists.macserve.net
[mailto:valentina-bounces+silversoft=skynet.be at lists.macserve.net] Namens
Ivan Smahin
Verzonden: dinsdag 14 augustus 2007 15:21
Aan: Valentina Developers
Onderwerp: Re[2]: V4MD : Connecting to a local DB AND to a server DB
possible ?
Hello Steven,
Tuesday, August 14, 2007, 4:09:36 PM, you wrote:
> Hi Bart,
> I did include it, and it works : in the example below I first correctly
make
> the
> gConn object, open it and connect to the database, close the database,
close
> the
> connection object again and then I do the Init() call. I reuse the same
> gConn object,
> open it, try to connect to the database, but then get the error that the
> login and/or
> password are not correct, which obviously they are, as it worked a few
> milliseconds
> before
> If I remove the gVal.init() line, the same code Works flawlessly.
> If I put the gVal.init() line near the gVal.initClient() line, the First
> attempt to
> connect to the database also fails.
> So I continue to search ...
You should not reuse connection object.
--
Best regards,
Ivan Smahin
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com
_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list