Hi,
I am getting ready to develop an ActiveX DLL that will be called from an ASP page. So far I made a super-simple object that basically just uses the Response Object. Problem is, the object never gets destroyed, and the ASP code sometimes barfs if I try setting it = Nothing...
Am I missing something?
ASP File:
VB Code:
<% @ Language = VBscript %> <% option explicit %> <% Dim objCGI ' Set objCGI = Server.CreateObject("CGI_Test.clsCGI_Test") objCGI.ServerResponse(Response) Set objCGI = Nothing %>
Class File (6-Global MultiUse):
VB Code:
Option Explicit ' Public Sub ServerResponse(Response As Object) Response.Write ("<html><body><h1>Hello world !</h1></body></html>") End Sub
Here is the output which looks fine...




Reply With Quote