Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

D7 WebApp exe creates multiple instances on IIS

Status
Not open for further replies.

Vrijesh

Instructor
Feb 29, 2004
9
US
Hello All,

I built a web app (exe) w/database connectivity using Borland Delphi 7 and deployed it using IIS. However, IIS seems to be creating a separate instance for each web module accessed in the (most pages are separate delphi web modules with different functionality). These modules run in a virtual directory on IIS. After the application is exited and the browser is closed, the IIS instances remain. They keep piling up using about 5MB to 10MB of memory per instance. It requires a hard-boot to kill these instances.

FYI: WebModule.OnCreate sets the DB connection to active and the DBExpress Object Connected property is also set to True. WebModule.OnDestroy sets the dbExpress connection to false.

Could someone tell me what I need to do so the instances terminate once the user exits the application?

Environment: Windows 2000 Server with SP4, Oracle 9i db, IIS 5.0

Thank you,

VJ

 
Hi All,

I figured out that the WebModule.OnCreate and .OnDestroy had code to open and close the data connections. And this was causing the problem, because once I copied the code into each module, the instances have cleared up.

VJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top