 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sat Jan 20, 2007 3:03 am Post subject: CGI EXE IIS Instance not being destroyed |
|
|
Hello All,
I built a web app using Borland Delphi 7 and deployed it using IIS.
Everything is fine in terms of web access, but the IIS instance do not
seem to be killed and reclaimed. For each web module accessed in the
app (most pages
are separate delphi web modules with different functionality) a
separate exe instance is being created. These
modules run in a virtual directory on IIS. After the application is
exited, the IIS instances remain and keep piling up using about 5MB to
10MB of memory per instance. It requires a hard-boot to kill these
instances.
FYI:
1. WebModule.OnCreate sets the DB SqlConnection to active and the
DBExpress SqlConn Object's Connected property is also set to True.
WebModule.OnDestroy sets the db connection to false. I know the
OnDestroy is being called as I have a simple write to a file which is
performed. I just noticed that 2 CGI apps I created have the same
problem. So it looks like its something I am doing (or not doing).
2. The virtual directory is currently set to run in Medium (pooled)
isolation. I have tried all 3 - Low, Medium, and High, and everytime I
just end up adding about 3 more instances.
Looks like the WebModule is deliberately causing its host EXE to hang
around. When I exit the application and close the browser, the
WebModule is still keeping its EXE around. Could someone tell me what
eIse needs to be done so the instances terminate once the application
terminates?
Environment: Windows 2000 Server with SP4, Oracle 9i db, IIS5.0
Thanks,
VJ
ADDENDUM:
When I run the same exe on a WinXP Pro w/SP2, IIS5.1, I get a memory
read error every time a page (module) loads.
"The instruction at 0x00403b7a referenced memory at 0x00a24cdc. The
memory could not be read.
Click on OK to terminate
Click on Cancel to Debug"
When I keep my Task Manager open and reproduce this error, I see that
an instance of my app exists while the error is posted (page is loaded
in the background). As soon as I click OK, the error is closed and the
instance is killed leaving me only with the loaded webpage.
But when the same program runs on the Win2k Server box, no errors pop
up and the instances remain.
Anybody have any ideas/tests/solutions??? We are starting to pull out
our hairs!!!
Thanks, |
|
| Back to top |
|
 |
Wilbert van Leijen Guest
|
Posted: Sat Jan 20, 2007 8:45 pm Post subject: Re: CGI EXE IIS Instance not being destroyed |
|
|
vrijesh.jeswant (AT) gmail (DOT) com wrote:
| Quote: | Anybody have any ideas/tests/solutions??? We are starting to pull out
our hairs!!!
|
Convert it to an ISAPI application. Run it with an ISAPI compatible
webserver, e.g. OmniSecure (http://www.omnicron.ca)
This way, you can set breakpoints and step through your code.
HTH |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|