Groups | Blog | Home
all groups > inetserver asp components > october 2003 >

inetserver asp components : Connection failure inside ActivieX components in ASP


st946tbf NO[at]SPAM drexel.edu
10/21/2003 12:42:17 PM
I have a very strange problem that I hope some of the experiences out
there maybe able to help.

I developed an ActiveX (using C++) component which open a TCP ip
connection to another server (call A). Things works fine in both VB
and ASP the 1st time. If I stop and start the server A, the activeX
component would fail to connect the 2nd time; and the 3rd time trying
to connect, it would work again in VB, but not in ASP. Same for the
4th time, and so on. In summary, using this ActiveX component, after
the 1st successful connection, I reset the server A, using VB, I only
have 1 failure, but using ASP, I will always get error after ward.
Even change the ip address, port would not help. I tried to create a
new object each time, and it does not help either.

I suspect there is some type of TCP connection caching in the ASP, but
not sure.

My object is page level and my activex is "Both" and multi-threading
model.

Adrian Forbes [ASP MVP]
10/22/2003 12:44:11 AM
When the service stops, does your object get correctly destroyed?

[quoted text, click to view]

AddThis Social Bookmark Button