 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jan Guest
|
Posted: Tue Feb 20, 2007 9:11 am Post subject: ISAPI access violations |
|
|
We've got an ISAPI webbroker dll (Delphi 7). We have a test client app that
simulates many users hitting the dll simultaneously - via Posts(Indy's
idhttp)- and these posts randomly return access violations. The more
"users"(well, 30 threads, spaced 5 secs apart in a client app) we hit it
with, the more access violations we get. We were getting a bunch of 500
Internal Server Errors back, but these were reduced to a very rare
occurrence once a CriticalSection was introduced. Also tried:
- Steve Trefethen's updated ISAPIThreadPool.pas
(http://www.stevetrefethen.com/blog/ISAPIThreadPoolForUseInDelphiWebBrokerApplications.aspx),
and placed it after ISAPIApp in the project file
- Disabling Norton anti-virus made a difference in reducing the AVs (but of
course we can't ask our clients to disable this)
- Increased the Application.MaxConnections
The errors look like "HTTP/1.1 500 Access violation at address 018622EC in
module 'MyISAPI.dll'. Write of address CE83EA6C"
Anybody else seen this behavior? I've inherited this thing, already fixed
several issues and tired of looking at it- so could use all the perspective
I can get .
Thanks!
Jan |
|
| Back to top |
|
 |
danny heijl Guest
|
Posted: Wed Feb 21, 2007 1:16 am Post subject: Re: ISAPI access violations |
|
|
Jan schreef:
| Quote: | so could use all the perspective
I can get .
|
Start by wrapping all major parts of the code inside try...except
blocks, add context information to each exception message (which
procedure function, parameter values, dataset related info, user related
info, etc...), log it, and make a nice error page with it.
This way you will probably see a pattern emerging that will hopefully
give you an indication of were to start looking.
Danny
--- |
|
| Back to top |
|
 |
Powered by phpBB © 2001, 2006 phpBB Group .
|