On 12/08/2003 at 09:42 it was written:
>The "some_method" is actually code from the "WebDAV" example on the 4D
>site. The specific method is called WDAV_Directory List. To further
>test this I created a 4D method "aaaTest"
>
>C_POINTER($1)
>C_TEXT($0)
>
>C_STRING(80;$sName)
>C_LONGINT($iTable;$iField)
>
>RESOLVE POINTER($1;$sName;$iTable;$iField)
>
>$0:=$sName
>
>from Active 4D I have the following code:
>
>c_pointer($ptrArray)
>$ptrArray:=DSS_get_array_by_unary_type(2)
>write("this is the Array name...")
>write(aaatest($ptrArray))
>dss_return_variable($ptrArray)
>exit
>
>The result in interpreted mode is:
> this is the Array name...*axDSS_001
>
>In compiled mode:
> this is the Array name...*
Looking hard at this one... Some things to try...
Can you remove the usage of $1 in the RESOLVE POINTER command in your test method?
Instead, assign $1 to a local variable and then use that local variable when calling
RESOLVE POINTER.
After the DSS_Get_Arroy_by_Unary, please place the followng line of code:
ALERT(STRING(NUM(VAR_qi_NULL_Pointer($ptrArray))))
You _should_ have an alert in all situations that is displaying "0", meaning the
pointer returned is not NULL.
Try putting the RESOLVE POINTER line of code in the same method as your DSS calls. We
are seeing with this test if it is the calling of the method that is having an affect
on the variable type that is referenced for the DSS variable.
Let me know what these three different ideas/tests provide for us in terms of
information.
Cheers!
================================================================
Steven G. Willis [EMAIL PROTECTED] 772.794.9494
Deep Sky Technologies, Inc. http://www.deepskytech.com/
http://www.badchickens.com/ http://www.store-secure.com/
AIM-iChat: dstisgwillis
================================================================
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
================================================================