Board index » delphi » multitreaded COMServer freeze after a while on an ADOQuery.open
Michael
![]() Delphi Developer |
Fri, 09 Dec 2005 16:36:54 GMT
multitreaded COMServer freeze after a while on an ADOQuery.open
Hi!
I know that many of you can make worked the ADOComponents (Delphi7, both MS OLEDB Provider for MSSQLServer or Oracle) great in a multithreaded server, but as far as Im concerned, I cannot get it worked! This is a Midas/COM server in an NT Service. I have an ADOConnection per RemoteDataModule (Apartment or Free Threaded makes no great differences... and I dont know really the one I must use) and many datamodules with each one many ADOQueries. If only one client is connected it seems to work fine but if the number of clients grows, the server will crash more or less rapidly... I mean that all get stalled and no-one can anymore connect him to the application or works within it! With a stresser application I see that it frozes on an ADOQuery.Open. I saw also a montain of Acces Violations always read on the same addresses (on the adoquery.open) that is not catch and makes no exceptions but that we see on the eventlog. I tried many features (CoInit, CoUnInit, mutex, differents parameters, Please, can you tell me a way to find out a solution, or post the code Best regards, |