Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM servers, ASP.net, life expectancy
Message
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00854428
Message ID:
00854449
Views:
14
Here's what John was refering to from ActiveVFP(a vfp mtdll):
lnNumber= ADIR(laGifs,SUBSTR(oProp.AppStartPath,1,ATC([AVFPdemo2],oProp.AppStartPath)+8)+'r\temp\*.gif')  && Create array
FOR i = 1 TO lnNumber  && Loop for number of files
IF DATETIME() - CTOT(DTOC(laGifs(i,3))+' '+laGifs(i,4)) > 1200 && files older than 20 Minutes, erase
	ERASE (SUBSTR(oProp.AppStartPath,1,ATC([AVFPdemo2],oProp.AppStartPath)+8)+'r\temp\'+laGifs(i,1))
ENDIF
ENDFOR
BTW, Timers will not work directly in a vfp mtdll. I'm not even sure they would work in a COM .exe called from a mtdll although I could be wrong(maybe 3rd party C++ timer would work).
>Thank you,
>
>What is ActiveVFP? Does Application_BeginRequest() stop when the page is left for another also?
>Neil
>
>
>>Hi,
>>The object will be destroyed once out of scope.
>>As what ActiveVFP does, it will check and delete >=5 monutes file on every request.. on that asp page. I think you can do the same in page_load() or Application_BeginRequest()
>>
>>HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform