Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM Object Interaction & passing by reference
Message
From
06/11/2002 15:06:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COM Object Interaction & passing by reference
Miscellaneous
Thread ID:
00719522
Message ID:
00719522
Views:
42
I have a com object written in FoxPro 6.0 (SP5). The project has several classes that are OLE Public and are registered in MTS (COM+). The dll works gread under NT 4.0 but is now giving an error under Windows 2000.

The objects are DBAccess.Client, DBAccess.Company and DBAccess.Address. In the ASP page, we create an object of type DBAccess.Client and pass in a recordset to the Save method [ oClient.save(oRS) ].

The save method uses MTS to create DBAccess.Company and DBAccess.Address objects to save the Company and address information prior to saving the client information.

In the code, we call:
PARAMETERS voRS

oCompany.Save(@voRS)
voRS.MoveFirst

which crashes. There are two ways to work around this issue. One is to take out the @ operator. The other is to leave the @ operator in, create a new package in MTS and move the dbaccess.client class to that new package and voila, it starts working. I don't understand what is happening, but need to find out because neither solution is very good for our complete application.


(VFP 6.0 SP5 Win2000 Server.)
Next
Reply
Map
View

Click here to load this message in the networking platform