Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM servers, life expectancy, asp.net
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00854427
Message ID:
00854552
Views:
17
COM uses reference counting so as soon as there are no more references to your COM object it will destroy.

Create a windows service in .net. It is very simple to do. There is a good walkthrough in the visual studio .net help that shows you how to do it. You should be able to do it within a day. There are two timers in .net, one for winforms (under the windows form toolbox tab) and one for components (under the components toolbox tab). Make sure you use the one for components!

>HI,
>
>I have a question about COM servers, life expectancy and ASP.net. I need to check a TEMP directory and delete any file that is greated than 5 minutes old. I was gonig to build a vfp COM server with a timer object as the basis for the timing element. If I instanitate the COM object from an apsx page how long is it expected to live. Does it get destroyed after the session times out? Does it get distroyed during normal .net house cleaning? Does it get distroyed when the page is left for another. Or.... should I build the deletion program as a service and just run it in the backround on my server? Any takers?
>
>Thank you,
>Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform