For Programmers: Free Programming Magazines  


Home > Archive > ASP > February 2005 > ActiveX server components









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ActiveX server components
Andrew Chalk

2005-02-17, 3:56 am

I have written an ActiveX component for a WEB app. that is invoked by an ASP
page. Since multiple instances of this page will be requested, are there any
special coding practises that I should be aware of?

I ask this because it 'crashes' (CPU goes to 100%) after 'a few' hours
runtime. Are separate instances of the control invoked with each new page
request?

Many thanks.


Egbert Nierop \(MVP for IIS\)

2005-02-23, 3:55 pm

"Andrew Chalk" <achalk@XXXmagnacartasoftware.com> wrote in message
news:uy1L6eKFFHA.3728@TK2MSFTNGP14.phx.gbl...
>I have written an ActiveX component for a WEB app. that is invoked by an
>ASP
> page. Since multiple instances of this page will be requested, are there
> any
> special coding practises that I should be aware of?
>
> I ask this because it 'crashes' (CPU goes to 100%) after 'a few' hours
> runtime. Are separate instances of the control invoked with each new page
> request?


Hi,

There are several ActiveX types in VB6.
ActiveX EXE
ActiveX DLL
ActiveX Control

You should -only- use an ActiveX DLL in ASP projects and compile it using
'unattended execution' and 'retained in memory'.

Reasons for not working (scaling/hanging) other types of ActiveX's are
related to Threading models that I won't go into (see google about this)...

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm


> Many thanks.
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com