Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data access in remote automation
Message
De
24/05/2003 05:09:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/05/2003 14:19:22
John Fitzgerald
Kenneths Hair Salons & Day Spas,Inc.
Columbus, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00792262
Message ID:
00792517
Vues:
17
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform