|
 |
asp_components thread: a problem when calling an VC++ dll from an asp page.
Message #1 by "kashif nazar khan" <kashif_nazar@h...> on Fri, 15 Dec 2000 06:00:24 -0000
|
|
the problem is.
when i call an interface of a dll from my asp page, that interface get
called,
but when i use that, and close my asp page, the dll could't be released.
so i can't build the dll again, or can't make the changes in the dll.
why is so.
i am using the following code in my asp page.
<%
dim obj
set obj = server.createobject("mtscomp1.component1.1")
%>
the value is <%= obj.GetValues
set obj = nothing %>
it works only for the first time, then if i want to make changes in my
dll, it is not possible for me, as my asp never release that dll.
---
You are currently subscribed to asp_components as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_components-$subst('Recip.MemberIDChar')@p2p.wrox.com
Message #2 by "richard.hands" <richard.hands@n...> on Fri, 15 Dec 2000 19:03:06 -0000
|
|
heh, guess what, according to the microsoft documentation this behaviour is
by design :)
basically, once the web server has loaded a DLL once, it stays resident
(probably something to do with keeping things efficient or some other crap).
so what you have to do is the following
once you are ready to re-compile your DLL run the following command to stop
the web service (note, just stopping the web server with its stop option
doesnt work)
net stop iisadmin /y
then, recompile your dll and re-start the service with
net start w3svc
theres an extra one you need to start if you are using IIS, this works for
PWS.
if you check the microsoft MSDN library and search for net stop iisadmin,
you should find the article that documents this "feature".
Richard Hands
----- Original Message -----
From: "kashif nazar khan" <kashif_nazar@h...>
To: "ASP components" <asp_components@p...>
Sent: Friday, December 15, 2000 6:00 AM
Subject: [asp_components] a problem when calling an VC++ dll from an asp
page.
> the problem is.
>
> when i call an interface of a dll from my asp page, that interface get
> called,
> but when i use that, and close my asp page, the dll could't be released.
>
> so i can't build the dll again, or can't make the changes in the dll.
>
> why is so.
>
> i am using the following code in my asp page.
> <%
> dim obj
> set obj = server.createobject("mtscomp1.component1.1")
> %>
> the value is <%= obj.GetValues
> set obj = nothing %>
>
> it works only for the first time, then if i want to make changes in my
> dll, it is not possible for me, as my asp never release that dll.
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to asp_components as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_components-$subst('Recip.MemberIDChar')@p2p.wrox.com
Message #3 by "Muthukumar Velusamy" <muthutalks@m...> on null
|
|
Hi,
This is a bug in IIS 4.0. To over come this problem, try testing your component first in VB. If required functionalities are over,
then deploy it in ASP page and try.
Once IIS loads the DLL, it doesn't release or unload the dll.
Did u try this option? "net stop iisadmin /y"
Muthu
On Friday, December 15, 2000 at 06:00:24 AM, ASP components wrote:
> the problem is.
>
> when i call an interface of a dll from my asp page, that interface get
> called,
> but when i use that, and close my asp page, the dll could't be released.
>
> so i can't build the dll again, or can't make the changes in the dll.
>
> why is so.
>
> i am using the following code in my asp page.
> <%
> dim obj
> set obj = server.createobject("mtscomp1.component1.1")
> %>
> the value is <%= obj.GetValues
> set obj = nothing %>
>
> it works only for the first time, then if i want to make changes in my
> dll, it is not possible for me, as my asp never release that dll.
>
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to asp_components as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_components-$subst('Recip.MemberIDChar')@p2p.wrox.com
|
|
 |