ObjectContext while debugging
Posted on 2001-08-17
When creating an activex dll, and using the debugging feature of visual basic I am getting some errors which i do not get when the component has been compiled.
First some information about the dll.
The dll grabs the object context and then tries to access the response object (you will see code in a minute). Then the component is being "created" in an asp page. When I compile the component it looks just fine when I then open the asp page in my browser. But when I use the debugging feature it gives me an error on the line where I request the response object. With other words, the object context is invalid.
Is there any way that I can use Visual basic's debugging feature with my asp pages and the object context? because now I have to stop IIS, compile the component, start IIS and then over and over again. I really do hope someone is able to give me a hand here.
here's some code which will show you what is going on.
Private ObjectContext As ObjectContext
Private Response As ASPTypeLibrary.Response
Private Sub Class_Initialize()
Set ObjectContext = GetObjectContext()
Set Response = GetObjectContext("Response")
Private Sub Class_Terminate()
Set ObjectContext = Nothing
If someone can help me debugging the way I want to I will give 300 points (will be adjusted later on).