
Debugging VB6 dll for ASP page
i am trying to debug a VB6 dll which is called from an ASP.
when the dll is compiled it works fine. however , in debug mode i keep
getting the 'Error 91:
Object variable or With block variable not set'
this happens when i call the following code:
Option Explicit
Public ObjCtx
Public rsp As Response
Public req As Request
Public ses As Session
Public cDB As clsDatabase
Public Sub Main()
On Error GoTo ErrorH
Set ObjCtx = GetObjectContext()
Set rsp = ObjCtx("Response")
Set req = ObjCtx("Request")
Set ses = ObjCtx("Session")
Set cDB = New clsDatabase
Exit Sub
ErrorH:
Errorhandler Err, "Main"
End Sub
the code that it errors on is:
Set rsp = ObjCtx("Response")
in the Sub Main procedure.
i do have the correct references set up and like i said everything works
fine when compiled.
thanks for any help
paul