Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dueling vfp apps don't share data well.
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00390786
Message ID:
00391121
Views:
12
Thanx Rick,

You are the best. See you at devcon.
Dr. G. (Neil)

>A COM object is like a new instance of Visual FoxPro. So you need to set the environment in the INIT of the server.
>
>I always do at least the following in any COM object:
>
>SET EXCLUSIVE OFF
>SET REPROCESS TO 2 SECONDS
>
>*** Find the startup path
>THIS.cAppStartPath = ADDBS(JUSTPATH(Application.ServerName))
>
>SET PATH TO (THIS.cAppStartPath)
>
>If the object is used in VFP and COM you'll want to look at the Application.Startmode property to do this stuff only in COM.
>
>+++ Rick ---
>
>
>>Hi UTer's
>>
>> I have a vfp application called myapp.exe that uses data tables in a dbc called mydata.dbc. I have made a multi-threaded com server, myapp.dll,that also uses the tables in mydata.dbc. I use some of the objects in the automation server in WORD, EXCEL and even on Active Server Pages. I get an "access denied" error in vfp when I launch myapp.dll and then myapp.exe. The .exe and the .dll work with the data tables individually but not together. They don't share well.
>>
>>Neil
Previous
Reply
Map
View

Click here to load this message in the networking platform