Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Aug : TidHTTP inside a DLL = Access Violation!

www.cryer.info
Managed Newsgroup Archive

TidHTTP inside a DLL = Access Violation!

Subject:TidHTTP inside a DLL = Access Violation!
Posted by:"Jason" (jas..@noreplies.com)
Date:8 Aug 2005 00:37:03

Hi all,

I have written a small application that has a form, and a data
module.

In the DataModule I have several ADO dataaccess components, TidHTTP
component and an XMLDocument component.

The app connects to a website, downloads an XML document and
iterates through its values and writes them to a database.

All this is fine and works...however.

I then tried to move this functionality into a DLL where I ran
into problems.
When the DLL is called the main form opens successfully, but when
the datamodule kicks off (which contains the TidTHTTP component)
I get a EReadError, property AuthProxyRetries does not exist!

Do I have to create the datamodule, then create all components
in it by hand (ie web := TidHTTP.create(application)) or am I
doing something wrong?

Can the TidHTTP component be run from inside a DLL?

P.S. this DLL may be called by another programming language,
hence choosing DLL's over packages.

Thanks,
Jason.

Replies:

www.cryer.info
Managed Newsgroup Archive