Shocked to find can't init valentina with LiveCode

Barry G. Sumpter barrysum at bigpond.net.au
Thu Mar 8 15:01:18 CST 2012


LOL.

Yes, the wiki has always been weird.
Working with LiveCode has always been weird.

So the combination of working with both is exponentially weird not just
doubly weird.

If anyone else is following this v4Rev (Valentina for Revolution (LiveCode))
Once you install v4Rev you can find samples LiveCode apps here (I suggest
starting with this example):
M:\Documents and Settings\Barry\My Documents\Paradigma
Software\V4REV_4\Examples\Common\Database_CreateCloseOpen
Using LiveCode on 64 bit machines has its own issues over and above 32 bit
machines.

I developed quite a bit of val_initClient timers in RealBasic
To test SNs, invalid SNs, blank SNs
to find that the vDB will open and work but only for a few minutes.
I could swear around 10 mins.  Never exactly.  
So even with an INVALID serial number it would work for around 10 mins. (?)
With a valid SN I had to be careful not to post the SN with coding examples.

I feel Paradigma should update the install to include notes on the Examples
etc on the final page of the install.
With shortcuts to the doco and examples folders created on the desktop and
taskbar.

With a little help from both Mike here and Sturgis on the LiveCode forums.
I hope to write a step-by-step doco.

http://forums.runrev.com/phpBB2/viewtopic.php?f=15&t=11322

-- put true into gClient -- YOU NEED MODIFY THIS TO TRUE FOR CLIENT-SERVER
mode of examples.
-- MUST BE CHANGED TO THE FOLLOWING in ALL v4Rev samples i.e.
ExampleTools.rev:
set the gClient of this stack to true
--And remember that the LiveCode mouse over debugger for gClient 
--shows the popup value of the local gClient and NOT the value of gClient of
this stack.


hth





-----Original Message-----
From: valentina-bounces at lists.macserve.net
[mailto:valentina-bounces at lists.macserve.net] On Behalf Of
valentina-request at lists.macserve.net
Sent: Friday, 9 March 2012 3:36 AM
To: valentina at lists.macserve.net
Subject: Valentina Digest, Vol 111, Issue 8

Send Valentina mailing list submissions to
	valentina at lists.macserve.net

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.macserve.net/mailman/listinfo/valentina
or, via email, send a message with subject or body 'help' to
	valentina-request at lists.macserve.net

You can reach the person managing the list at
	valentina-owner at lists.macserve.net

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Valentina digest..."


Today's Topics:

   1. Re: Shocked to find can't init valentina with LiveCode
      (Mike Bonner)
   2. Re: Shocked to find can't init valentina with LiveCode
      (william humphrey)
   3. Re: Shocked to find can't init valentina with LiveCode
      (william humphrey)


----------------------------------------------------------------------

Message: 1
Date: Thu, 8 Mar 2012 08:49:39 -0700
From: Mike Bonner <bonnmike at gmail.com>
To: Valentina Developers <valentina at lists.macserve.net>
Subject: Re: Shocked to find can't init valentina with LiveCode
Message-ID:
	<CAG1cpSp8mSWytBx0fzKZyhJCi6fcfDSeC=4FLM+vkFuHG+E4vA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I'm finally figuring things out, I believe valentina_initClient doesn't
require a serial (and i can't make it work if I put one in) not sure it even
takes a cache size.
valentina_init() DOES take cache size and serials. I think the premise is
that if you're using the client version you must have a valid license for
one of the valentina servers so that the serial for the adk isn't needed in
that situation.

Found all the example stacks thx to barry that came with the adk. Have NO
idea how long i've been fighting all this stuff for so long using the wiki
tutorial. Gave up every time I tried but hey, with the example stacks there
are actual working setups that can be ripped apart so i'm suddenly in happy
land.



On Thu, Mar 8, 2012 at 8:33 AM, william humphrey <bill at bluewatermaritime.com
> wrote:

> I've never had much luck with the samples either. I think someone 
> should go through and test every sample with latest Mac OS operating 
> system and latest LiveCode and latest Valentina install and just 
> delete all the samples which no longer work. It would be wonderful if 
> the samples were designed for a first time user.
>
> In your stack connection should look like (in this order):
>
>   *get* Valentina_InitClient( 10 * 1024 * 1024,"extremely long serial 
> number stuff here",)
>
>    *-- There has been a change so maybe serial numbers aren't needed 
> now?*
>
>    *get* Valentina_DebugLevel("kLogParams")
>
>    *-- first establish connectionRef as gConnection*
>
>    *put* VConnection_Constructor("localhost", "sa", "sa", 15432) 
> intogConnection
>
>    *-- next you establish dbRef as gDatabase*
>
>    *put* VDatabase_Constructor( gConnection ) into gDatabase
>
>    *get* VDatabase_DateFormat(gDatabase, "kYMD")
>
>    *get* VDatabase_DateSep(gDatabase, "-")
>
>    *get* VDatabase_Open( gDatabase, b_l_database.vdb )
>
>
>
>    *if* it contains "ERROR" *then*
>
>       *answer* "there was an error in DatabaseOpen"
>
>             *exit* to top
>
>    *end* *if*
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.macserve.net/pipermail/valentina/attachments/20120308/ce195a6b
/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 8 Mar 2012 12:34:55 -0400
From: william humphrey <bill at bluewatermaritime.com>
To: Valentina Developers <valentina at lists.macserve.net>
Subject: Re: Shocked to find can't init valentina with LiveCode
Message-ID:
	<CA+ZPFi9CV1AETjdWV-_c9KLtke_HNa8bvhfjh+S265oTQuOBFQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

GREAT NEWS, My other advice is to not use any the "v" commands in livecode
and don't use any of the livecode ones that are supposed to work with any
database. Some don't work and some give spectacular crashes. I do just about
everything with SQL calls in VDatabase_SqlSelect and am quit happy.

On Thu, Mar 8, 2012 at 11:49 AM, Mike Bonner <bonnmike at gmail.com> wrote:

> I'm finally figuring things out, I believe valentina_initClient 
> doesn't require a serial (and i can't make it work if I put one in) 
> not sure it even takes a cache size.
> valentina_init() DOES take cache size and serials. I think the premise 
> is that if you're using the client version you must have a valid 
> license for one of the valentina servers so that the serial for the 
> adk isn't needed in that situation.
>
> Found all the example stacks thx to barry that came with the adk. Have 
> NO idea how long i've been fighting all this stuff for so long using 
> the wiki tutorial. Gave up every time I tried but hey, with the 
> example stacks there are actual working setups that can be ripped 
> apart so i'm suddenly in happy land.
>
>
>
> On Thu, Mar 8, 2012 at 8:33 AM, william humphrey < 
> bill at bluewatermaritime.com> wrote:
>
>> I've never had much luck with the samples either. I think someone 
>> should go through and test every sample with latest Mac OS operating 
>> system and latest LiveCode and latest Valentina install and just 
>> delete all the samples which no longer work. It would be wonderful if 
>> the samples were designed for a first time user.
>>
>> In your stack connection should look like (in this order):
>>
>>   *get* Valentina_InitClient( 10 * 1024 * 1024,"extremely long serial 
>> number stuff here",)
>>
>>    *-- There has been a change so maybe serial numbers aren't needed now?
>> *
>>
>>    *get* Valentina_DebugLevel("kLogParams")
>>
>>    *-- first establish connectionRef as gConnection*
>>
>>    *put* VConnection_Constructor("localhost", "sa", "sa", 15432) 
>> intogConnection
>>
>>    *-- next you establish dbRef as gDatabase*
>>
>>    *put* VDatabase_Constructor( gConnection ) into gDatabase
>>
>>    *get* VDatabase_DateFormat(gDatabase, "kYMD")
>>
>>    *get* VDatabase_DateSep(gDatabase, "-")
>>
>>    *get* VDatabase_Open( gDatabase, b_l_database.vdb )
>>
>>
>>
>>    *if* it contains "ERROR" *then*
>>
>>       *answer* "there was an error in DatabaseOpen"
>>
>>             *exit* to top
>>
>>    *end* *if*
>>
>> _______________________________________________
>> Valentina mailing list
>> Valentina at lists.macserve.net
>> http://lists.macserve.net/mailman/listinfo/valentina
>>
>>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> 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/20120308/5139896b
/attachment-0001.html>

------------------------------

Message: 3
Date: Thu, 8 Mar 2012 12:35:44 -0400
From: william humphrey <bill at bluewatermaritime.com>
To: Valentina Developers <valentina at lists.macserve.net>
Subject: Re: Shocked to find can't init valentina with LiveCode
Message-ID:
	<CA+ZPFi91JQV0caQOOhVxT9g2hxv2kTFpnh=t33oysfxMJ31noQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

My last email should say use only the "v" commands.

On Thu, Mar 8, 2012 at 12:34 PM, william humphrey <
bill at bluewatermaritime.com> wrote:

> GREAT NEWS, My other advice is to not use any the "v" commands in 
> livecode and don't use any of the livecode ones that are supposed to 
> work with any database. Some don't work and some give spectacular 
> crashes. I do just about everything with SQL calls in VDatabase_SqlSelect
and am quit happy.
>
>
> On Thu, Mar 8, 2012 at 11:49 AM, Mike Bonner <bonnmike at gmail.com> wrote:
>
>> I'm finally figuring things out, I believe valentina_initClient 
>> doesn't require a serial (and i can't make it work if I put one in) 
>> not sure it even takes a cache size.
>> valentina_init() DOES take cache size and serials. I think the 
>> premise is that if you're using the client version you must have a 
>> valid license for one of the valentina servers so that the serial for 
>> the adk isn't needed in that situation.
>>
>> Found all the example stacks thx to barry that came with the adk. 
>> Have NO idea how long i've been fighting all this stuff for so long 
>> using the wiki tutorial. Gave up every time I tried but hey, with the 
>> example stacks there are actual working setups that can be ripped 
>> apart so i'm suddenly in happy land.
>>
>>
>>
>> On Thu, Mar 8, 2012 at 8:33 AM, william humphrey < 
>> bill at bluewatermaritime.com> wrote:
>>
>>> I've never had much luck with the samples either. I think someone 
>>> should go through and test every sample with latest Mac OS operating 
>>> system and latest LiveCode and latest Valentina install and just 
>>> delete all the samples which no longer work. It would be wonderful 
>>> if the samples were designed for a first time user.
>>>
>>> In your stack connection should look like (in this order):
>>>
>>>   *get* Valentina_InitClient( 10 * 1024 * 1024,"extremely long 
>>> serial number stuff here",)
>>>
>>>    *-- There has been a change so maybe serial numbers aren't needed
>>> now?*
>>>
>>>    *get* Valentina_DebugLevel("kLogParams")
>>>
>>>    *-- first establish connectionRef as gConnection*
>>>
>>>    *put* VConnection_Constructor("localhost", "sa", "sa", 15432) 
>>> intogConnection
>>>
>>>    *-- next you establish dbRef as gDatabase*
>>>
>>>    *put* VDatabase_Constructor( gConnection ) into gDatabase
>>>
>>>    *get* VDatabase_DateFormat(gDatabase, "kYMD")
>>>
>>>    *get* VDatabase_DateSep(gDatabase, "-")
>>>
>>>    *get* VDatabase_Open( gDatabase, b_l_database.vdb )
>>>
>>>
>>>
>>>    *if* it contains "ERROR" *then*
>>>
>>>       *answer* "there was an error in DatabaseOpen"
>>>
>>>             *exit* to top
>>>
>>>    *end* *if*
>>>
>>> _______________________________________________
>>> Valentina mailing list
>>> Valentina at lists.macserve.net
>>> http://lists.macserve.net/mailman/listinfo/valentina
>>>
>>>
>>
>> _______________________________________________
>> Valentina mailing list
>> Valentina at lists.macserve.net
>> http://lists.macserve.net/mailman/listinfo/valentina
>>
>>
>
>
> --
> http://www.bluewatermaritime.com
>



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

------------------------------

_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina


End of Valentina Digest, Vol 111, Issue 8
*****************************************



More information about the Valentina mailing list