For this line of code, we're receiving this error:

ot_array_put($object;"StructureEntities";->getArray)
Unable to convert this pointer to a compiled pointer

The a4d code is:

method "StrucEntToObject"(&$entities)
` ----------------------------------------------------
` Method: StrucEntToObject
` Author: mcheck
` Date and time: 10/25/05, 17:12:04
` Modified: 11/01/05 by MHW
` ----------------------------------------------------
` Called from: A4D
` Description: Takes the structure enitites and iterates through them
to creat and save an object
`
`
` Parameters
` ----------------------------------------------------
//  convert the Structure Entities from the session collection to a
single OT object
//  the $entities is an array comprised of the names of the collections within
//      the session that detail the collected data stored each as a collection

c_longint($idx)
c_longint($object)

$object:=execute in 4d("OT New";*)

ARRAY TEXT(getArray;0)
copy array($entities;getArray)
ot_array_put($object;"StructureEntities";->getArray)
clear array(getArray)


So the $entities is a passed array of text that we're copying into getArray

Passing the pointer into the database method OT_ARRAY_PUT seems to be
the trouble.  Is there something we've missed with passing pointers to
arrays into a compiled database?  At least as I understand the error,
that is the trouble?

We are using the OT_ARRAY_PUT method (a 4d method) before this
instance and it works fine.  We are not calling from a library, which
we are here.  Something with the scope of the pointer going into the
compiled database?

Pls help.

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/

Reply via email to