Can't reconnect

william humphrey bill at bluewatermaritime.com
Tue Oct 15 09:12:07 CDT 2013


I thought it was:
Please explain what in the method I am using should be tossed and done
differently?

*get* Valentina_InitClient(10*1024* serial etc)

*get* Valentina_DebugLevel(kLogParams)

put vConnection_Constructor("localhost","sa","sa",15432) into
lDatabaseConnection
-- I never told it to open the connection bad?
--get vConnection_Open( lDatabaseConnection )
put vDatabase_Constructor(lDatabaseConnection) into lDatabase

 *get* VDatabase_Open( lDatabase, myDatabaseName )
...

 *get* VDatabase_Close( lDatabase )

*put* VDatabase_Destructor( lDatabase ) into lDatabase

-- I never closed the connection bad?

--get closeAllDatabases
--get vConnection_Close( lDatabaseConnection )


On Tue, Oct 15, 2013 at 9:42 AM, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> Thanks Ivan. I'll adjust my code. I didn't know that the feature was going
> to be removed. Ruslan just said it was impossible, which is an incorrect
> statement.
>
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/**xtalkprogrammer<http://twitter.com/xtalkprogrammer>
> KvK: 50277553
>
> Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour
> spaces. http://www.color-converter.com
>
> Buy my new book "Programming LiveCode for the Real Beginner"
> http://qery.us/3fi
>
> Fill out this survey please
> http://livecodebeginner.**economy-x-talk.com/survey/<http://livecodebeginner.economy-x-talk.com/survey/>
>
> On 10/15/2013 15:37, Ivan Smahin wrote:
>
>>
>> On Oct 15, 2013, at 12:44 PM, Mark Schonewille <
>> m.schonewille at economy-x-talk.**com <m.schonewille at economy-x-talk.com>>
>> wrote:
>>
>>  Hi Ruslan,
>>>
>>> No, you're wrong. Ivan's answer was correct. It now works.
>>>
>>>
>>
>> Not exactly. Ruslan was about following - that "feature" (silently open
>> connection in database constructor) will be removed soon.
>> You should not rely on this.
>> Instead you should open connection himself either as close one:
>>
>> put vConnection_Constructor("**localhost","sa","sa",15432) into
>> lDatabaseConnection
>> get vConnection_Open( lDatabaseConnection )
>> put vDatabase_Constructor(**lDatabaseConnection) into lDatabase
>> ...
>> get closeAllDatabases
>> get vConnection_Close( lDatabaseConnection )
>> ...
>>
>>  ______________________________**_________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/**mailman/listinfo/valentina<http://lists.macserve.net/mailman/listinfo/valentina>
>



-- 
http://www.bluewatermaritime.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina/attachments/20131015/f7c3646f/attachment-0001.html>


More information about the Valentina mailing list