Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't Free up a com object
Message
From
18/04/2000 06:46:06
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
 
To
18/04/2000 05:27:55
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00359705
Message ID:
00360773
Views:
7
Hi Matt:

Hussmann is continuing to implode on itself.

When a COM object is created from ASP, the object is destroyed when the page goes away. The problem is when a COM object is loaded, it remains loaded in the WebServer until the process is shut down. This allows for quick access to the object when it is used again. In IIS, and apparently PWS running in NT, you can stop the process, thereby freeing up the object. However with Win95 you don't seem to be able to do this. You can click STOP in PWS, but this clears nothing. So you have to shut down the machine. This, of course is a real pain.




>Hi Ed,
>
>How are things at Hussmann ? You probably don't remember me, but I did some work there for IRW Associates.
>
>>I have created a VFP com object. This object is accessed from an ASP page running on Personal Web Server. Once it has been accessed, I go into VFP, make chages to the class, and try to save it as a Multithreaded COM object again. When I do this I get an error saying that file access is denied.
>>
>>Obviously the COM object has not been released. I have tried to close IE, close VFP and stop my Personal Web Server. The only thing that will free it up, is if I shut down my computer. Surely I must be doing something wrong.
>
>When your ASP page creates the com object, does it destroy it when it's finished with it ?
>
>e.g.
>
>Set oTest = CreateObject("myfilename.mycomobect")
>' do whatever calls to the object you want here
>Set oTest = Nothing
>
>I'm playing around with this technology at the moment, so this may not be of much help.
>
>Best.
>
>Matt.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform