Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing memory from dllHost
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00792271
Message ID:
00792486
Vues:
12
How often and how long are you measuring this?

VFP's memory usage tends to go up to a certain point then release again after a while or at least balance at some stable point.

However, if you see the increase with a repeated piece of code there may be a problem in your component that doesn't release some internal resource it's using... Make sure to clean up any object references etc.


+++ Rick ---

>I am finding that when a VFP dll (compiled in VFP 7) is instantiated from within an ASP Page (ASP v5.00 on Win2000 w IIS 5), each time the page is refreshed, there is a significant increase in the amount of Memory Usage.
>
>The ASP page is as follows:
>
><%@ Language=VBScript
>
><%Response.Buffer = True
>
>Response.AddHeader "pragma", "no-cache"
>Response.AddHeader "cache-control", "no-store"
>
>Dim strReferer, strPage
>
>strReferer = Request.ServerVariables("HTTP_REFERER")
>strPage = Request.ServerVariables("QUERY_STRING")
>Set loServer = Server.CreateObject("TMS.TMS_Main")
>Session.Value("LOGIN") = "TRUE"
>
>loServer.Process()
>Set loServer = Nothing
>
>
>Even when creating a very simple dll that does nothing, the memory usage increases at a smaller rate.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform