>Thanks for your reply Cetin,
>
>We're not using a data environent in the object's class procedure.
>This is what the procedures looks like.
>
> *a simple function will work on the remote computer, we're getting an answer
> Function Add(FirstNumber as Number, SecondNumber as Number) As Number
> Answer = FirstNumber + SecondNumber
> Return Answer
> Endfunc
>
> *trying to open a table from the remote computer doesn't work
> Procedure Open_Tables
> Set Exclusive off
> Select 0
> Use o:\kdg\data\cust.dbf Alias cust
> Endproc
>
>This works when running the COM object locally.
>
>Can you simply open a table using remote automation, or do you have to use a data enviroment??
John,
First as Fred already noted use UNC path not mapped.
I think you got me wrong. I didn't mean a dataenvironment class. A session class. At least to my experience if it's not a privatesession COM object has problems accessing the data.
define class MyClass as Session Olepublic
Datasession=2
*...
enddefine
Hanging reminds me it's trying to pop an error message but it can't have a user interface. Either check what's going on with an error routine and/or first compile to an exe so it could have a user interface.
As a trial you might modify your addition procedure intentionally to produce an error and check if that'd hang too. ie:
Answer = FirstNumber + SecondNumber + 'errorproducer'
Cetin