Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM .dll - and memory release
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
COM .dll - and memory release
Divers
Thread ID:
00173368
Message ID:
00173368
Vues:
57
Sorry to repost this, but
I am trying to create a test COM .dll to use in my ASP application using VFP 6.0 and NT 4.0 server and IIS4.
My problem is that my objects are not closing properly.

----------- VFP CODE -------------
define class myclass18 as custom OLEPUBLIC

function getpayment(pnperiods, pnInterestRate, pnAmount)
return payment(pnamount, pninterestrate, pnperiods)

enddefine
------------ END VFP CODE ------------

I use the project manager to build a COM .dll object (foxasp.dll). This works fine and I can overwrite the DLL with no problem until I execute the ASP code:

------------ ASP CODE -------------------
<% set oMyServer = server.createobject("foxasp.MYCLASS18")%>
<%= round(oMyserver.getpayment(360,.08/12,930000),2)%>

<% set oMyServer=nothing %>
------------- END ASP CODE -------------

as soon as I run this code everything with that .dll is frozen, I can't overwrite the .dll or delete the .dll. I tried using regsvr32 /u FOXASP.DLL and I see the objects removed from the registry, but I can still execute the ASP from the browser, so it must still be in memory. If I reboot the NT server, I can delete the .dll files.

Am I missing something simple here???

TIA,
Steve McMahon
ZDI
San Diego
Steve McMahon
ZDI
San Diego
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform