Michael,

A4D v3 or v4? We're still running v3, but there are some changes in v4 with respect to how process variables are declared and handled. In v3 if you uses a process variable, typically in cases where you need to pass a pointer, etc., you need to make sure that it is declared in your 4D shell code. I know this because I had been using the DSS variables from the BASh component in some A4D code but found that to be unreliable. The only solution was to declare actual variables where needed.

Not that it should make any difference but what happens if you try something like this:

arrayPointer := ->getArray
OT_ARRAY_PUT($object;"StructureEntities";arrayPointer)

-- Brad Perkins

Michael Check wrote:

Hey all,

I'm posting this again because I got not response before.  I was
thinking that some one has used pointers in A4D with a compiled
database.  In fact, we are, with the same database.  But elsewhere in
the A4D code, the following does not work:

OT_ARRAY_PUT($object;"StructureEntities";->getArray)

Error: Unable to convert this pointer to a compiled pointer

This code works fine in interpreted.

I'm not really even sure what this error message means.  We looked in
the a4d docs and there is not mention of this message that we can
find.  Can someone shed some light on how to address this issue?

The Method OT_ARRAY_PUT is a 4D method which follows:

### OT_ARRAY_PUT

C_LONGINT($Handle;$1)
$Handle:=$1

C_TEXT($Tag;$2)
$Tag:=$2

C_POINTER($pArray;$3)
$pArray:=$3

If (OT_HandleIsValid ($Handle))
        
        OT PutArray ($Handle;$Tag;$pArray->)
        
End if


### OT_HandleIsValid

C_BOOLEAN($0)
C_LONGINT($1)

$0:=(OT IsObject ($1)=1)

--
Thanks,

Michael Check
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to