ISAPI Filter fails when i use database

Posted on 2002-07-28
Last Modified: 2010-04-04
Hi all,

I am busy writing an ISAPI URL mapping filter. Mapping the physical path work just fine, but as soon as i attempt to use a database (in a datamodule) it hangs. ie IIS will not restart.

I had this will a Com object I wnated to use in the filter as well. As soon as i create the com object (or database connection) IIS hangs.

Im currently using XP pro with Delphi 5 and I have the filter loaded as a global filter with a high priority.

Also, how can i debug this DLL. Its really frustrating not being able to step though the code.
Question by:ggets
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 7184002
I suggest using OmniHttp as a debugging webserver.
You can find it at

Sometimes it's useful to code your isapi app as a cgi exe and then convert it to dll later. It requires only token changes in the project file to compile as either. Running as a cgi app may help shed more light on the problem.

I still use d5 ent with IIS, but apparently d6 allows some IDE debugging, although I`ve not heard enough to persuade me to upgrade yet.

Further, if you say what database (flat file systems may require additional rights) that can help, and I`ll say up front that the BDE sucks as any kind of web middleware.

Author Comment

ID: 7184584
HI Ray,

Thanks, I will try your suggestions. Im not using the BDE (I decided a long time ago that it sucks and would never use it). The database is SQL7 and im using ADO. I guess rights to the database (or com object) would be the first thing to check.

Expert Comment

ID: 7199658
Use Run/Parameters/HostApplication and turn off compiler optimization etc. to step through delphi dll's.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 8144095
You have a few old opened questions that I would like very much if you would take care of in the next 72 hours.  Unfortunatley, if you do not take care of them within 1 week, I am obligated to ask administration to review your account.  I am providing a handy list for you to get to your questions.  Thanks for your cooperation.  If you need help with finalizing any of these questions, drop a note here and I'm happy to help.

Community Support Moderator @Experts Exchange

Author Comment

ID: 8150727
Hi SpideyMod,

None of these comments work and in the end I figured it out myself.

Can you please delete,


Expert Comment

ID: 8152337
If you can post your solution to the problem, this will add value to our database and I can refund your question and PAQ it.  If you cannot, then I will have to delete it and that would be a shame.  Thanks.

Community Support Moderator @Experts Exchange

Accepted Solution

SpideyMod earned 0 total points
ID: 8173287
PAQ'd and 250 points refunded.  250 points NOT refunded.

If you will come back and post how you figured it out yourself, I will be happy to refund the remaining 250 points.  Thanks.

Community Support Moderator @Experts Exchange

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question