On Aug 24, 2005, at 11:06 PM, Aparajita Fishman wrote:
I put in a test pointer and text array in compiler_web and used
that instead of the Bash calls. It still caused the error.
You cannot pass dereferenced pointers to arrays to a plugin
command, you have to pass the array itself. It's a limitation/bug
in the 4D plugin interface.
That sucks! I got around it by calling a wrapper $itemTag :=
OT_GetItemProperties($object;$item). Doug Hall at mentioned that
something changed in the new version with sequence or something, but
I just needed to iterate thru it.
The first v4 beta will be out next week, it will allow you to
declare process variables within Active4D, even in a compiled
database. You can use them to pass data between 4D and Active4D. Or
you can do that now by just creating a wrapper method that declares
them and call that method before calling the OT wrapper methods.
2003.7 still broke something in Active4D or Bash, at least on a
client. This Active4D code snippet out of a library method use to work:
C_Pointer($pTextArray)
$pTextArray:=DSS_Get_Variable_By_Type(text array)
Util_ListToArray($aList;$pTextArray)
copy array($pTextArray->;$aTextArray)
DSS_Return_Variable($pTextArray)
Doug wrote the wrapper for me so I could get "List To Array" :
` Method: Util_ListToArray
C_TEXT($1;$ListName)
C_POINTER($2;$pTextArray) ` Pointer to the array to fill (Text)
C_POINTER($3;$pReferenceArray) ` Optional pointer to the reference
array to fill (Longint)
$ListName:=$1
$pTextArray:=$2
If (Count parameters=3)
$pReferenceArray:=$3
LIST TO ARRAY($ListName;$pTextArray->;$pReferenceArray->)
Else
LIST TO ARRAY($ListName;$pTextArray->)
End if
On our development server where Active4D is running on the server, it
works - it returns a populated text array.
On our development server where Active4D is running on my machine as
a client - it returns an empty array.
On our production server where Active4D is running on our web client
- it either returns an empty array or more often than not crashes
the client! Supposed to be same environment (OSX, Versions or 4D,
structure, pluggins etc.)
It seems to point to Bash breaking, but I'm not sure. Fortunately I
only had a couple calls like that and put on band-aids - don't like
crashing the production server.
Steve Alex
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/