Can't reconnect

Mark Schonewille m.schonewille at economy-x-talk.com
Tue Oct 15 04:14:04 CDT 2013


Hi Ruslan,

The documentation doesn't explain things like "If you use VServer and 
you are using vDatabase_Open() then you don't need to use 
vConnection_Open() but you need to use vConnection_Close() because 
vDatabase_Open() automatically creates a connection and the ID of this 
connection is returned by the function etc...

The text I wrote here doesn't many any sense whatsoever, but this is the 
type of explanations that people starting with Valentina API need. Yes, 
there is a bug list of API descriptions in the wiki, but if you start 
with Valentina, all these descriptions are meaningsless, especially 
because there is not one single word about implementation. Scripting 
examples are a must.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: 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/

On 10/15/2013 10:45, Ruslan Zasukhin wrote:
> On 10/15/13 11:32 AM, "Mark Schonewille" <m.schonewille at economy-x-talk.com>
> wrote:
>
> Hi Mark,
>
> 1)
>
> What exactly it not says? Please clarify, while I am correcting docs.
>
> 2) I have show tutorial to William, today.
> Have you check it.
>     first lesson -- local db
>     second lesson -- adds few lines of code to convert it to client-server
>
> So the second example shows exactly work with connections.
>
>
>> Thanks, Ivan. The documentation didn't tell me this. I will try it.
>
>
>> On 10/15/2013 10:14, Ivan Smahin wrote:
>>>
>>> I suppose we are talking about vServer which is limited to 5 similar
>>> connections.
>
>>> Firstly - there is no call for VConnection_Open - the only
>>> VConnection_Constructor is called.
>>> Also there is no VConnection_Close.
>>>
>>> Hmm, it seems connection will be opened by
>>> vDatabase_Constructor(lDatabaseConnection) (in case of closed connection).
>>> But you have to close connection calling VConnection_Close himself.
>


More information about the Valentina mailing list