Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM servers, ASP.net, life expectancy
Message
 
À
29/11/2003 10:43:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00854428
Message ID:
00854449
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform