Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : indy TIdHTTP in Delphi 2005

www.cryer.info
Managed Newsgroup Archive

indy TIdHTTP in Delphi 2005

Subject:indy TIdHTTP in Delphi 2005
Posted by:"Anthony Steele" (this_is_not_email@i_luv_spam.yes_i_do.co.ru)
Date:Tue, 22 Feb 2005 08:35:35

I have just moved my application from Delphi 7 to Delphi 2005/win32 and
am having trouble with the Indy TIdHTTP component. It used to work fine,
but now gives access violations on calls to
   aString := fcIdHttp.Get(UrlString);
  - but never on the first call.

This call is done on a thread, and synchronising does not help, but
badly affects the application's responsiveness. If I create a new
TIdHTTP before each get call there is no error, but I need to store
cookies so this is not viable.

Using Debug DCUs shows the exact call stack as
_DynArraySetLength
TIdBuffer.Clear
IdIOHandler.WriteBufferChar
IdIOHandler.WriteBufferCancel
TIdHTTPProtocol.BuildAndSendRequest
TIdCustomHTTP.ConnectToHost
TIdCustomHTTP.DoRequest
TIdCustomHTTP.Get


Any known issues/suggestions?

Regards
Anthony

Replies:

www.cryer.info
Managed Newsgroup Archive