Unusual behaviour [Valentina with LIVECODE API, Converting BitSets to ArraySets]

wtng wtng at pacific.net.sg
Wed Jun 20 10:29:10 CDT 2012


Lastly, the error details when I crash/hang:

 

Problem signature:

  Problem Event Name:                        APPCRASH

  Application Name:                             LiveCode.exe

  Application Version:                           4.6.4.1453

  Application Timestamp:                     4e71f797

  Fault Module Name:                          v4rev.dll

  Fault Module Version:                        4.9.1.0

  Fault Module Timestamp:                  4e3fcfdd

  Exception Code:                                  c0000005

  Exception Offset:                                00004fff

  OS Version:                                          6.1.7600.2.0.0.256.48

  Locale ID:                                             18441

  Additional Information 1:                  9e27

  Additional Information 2:
9e2778096e7e1e2a2e0302fe58f3eea8

  Additional Information 3:                  9e27

  Additional Information 4:
9e2778096e7e1e2a2e0302fe58f3eea8

 

Looks like it is stemming from the Valentina module.

 

From: wtng [mailto:wtng at pacific.net.sg] 
Sent: Wednesday, 20 June, 2012 3:57 PM
To: 'valentina at lists.macserve.net'
Subject: RE: Unusual behaviour [Valentina with LIVECODE API, Converting
BitSets to ArraySets]

 

Following on from 1st e-mail, additional tests:

 

When I write:

 

   put VField_FindValue (fldCode, "E001") into tBitSetRef

   put VSet_Count(tBitSetRef) into tCount

   put tCount after field efDisplay

 

I will get 1 appearing (correct as only one record with code E001).

 

BUT when I write:

 

   put VField_FindValue (fldCode, "E001") into tBitSetRef

   put VArraySet_FromBitSet (tBitSetRef) into tArySetRef

   put VSet_Count(tArySetRef) into tCount

   put tCount after field efDisplay

 

I don't hang...but I don't get any output in field efDisplay as well???
Nothing happens!

 

I am trying to get comfortable with converting BitSets to ArraySets but
right now, I seem to be doing something wrong.

 

rgds

Wee tong

 

Btw, I am using Valentina 4.8.1 with Livecode 4.6.4

 

 

From: wtng [mailto:wtng at pacific.net.sg] 
Sent: Wednesday, 20 June, 2012 2:09 PM
To: 'valentina at lists.macserve.net'
Subject: Unusual behaviour [Valentina with LIVECODE API, Converting BitSets
to ArraySets]

 

Friends,

 

Background:  I have a simple test table called pricelist with 4 columns and
only 12 records.

In my card script, I have already set up my table reference to be the global
variable tblPricelist.

 

My problem arises as I am trying out the functions to change a bitset to
arrayset.

 

When I do this:

 

global tblPricelist -- table pricelist

   

   put VTable_SelectAllRecords (tblPricelist) into tBitSetRef

   put VArraySet_FromBitSet (tBitSetRef) into tArySetRef

 

it executes silently in the background, apparently no problem.

 

BUT, when I do this (efDisplay is a Livecode text field):

 

global tblPricelist -- table pricelist

   

   put VTable_SelectAllRecords (tblPricelist) into tBitSetRef

   put VArraySet_FromBitSet (tBitSetRef) into tArySetRef

   put "done" into field efDisplay

 

the execution HANGS!  In fact, ANY command I execute after I use the
VArraySet_FromBitSet() function causes my script to hang.

 

Am I missing something here?

 

Sincerely 

Ng Wee Tong (surname is "Ng".J)

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina/attachments/20120620/bb87f302/attachment.html>


More information about the Valentina mailing list