Solved

Delphi XE2 Indy Error

Posted on 2012-03-30
7
1,563 Views
Last Modified: 2012-04-02
I have written a webservice in Delphi XE2 using Indy IDHttpWebBrokerBridge. The program has been developed as an unattended running one. It constantly pops up with errors like Elisterror, Connection reset by peer and Software caused connection abort. I tried putting an exception handler in the application events and the Idhttpwebbrokerbridge. still it comes up with that error. Can somebody please help.
0
Comment
Question by:sritharanb
  • 4
  • 3
7 Comments
 
LVL 9

Expert Comment

by:rinfo
ID: 37790684
Unless you submit some code how is one supposed to know what could be wrong.
Ideally in such case it is better to put these two files along with the project source files.
IdHTTPWebBrokerBridge.pas
IdCompilerDefines.inc
Check whether IdCompilerDefines.inc is accessible to project or not.
Better still copy this two files in the project source directory and try again
0
 

Author Comment

by:sritharanb
ID: 37791566
Hi,

I have attached the source files. If you could help me point in the right direction, would be great. thanks for any help in advance.
datasnap.zip
0
 
LVL 9

Expert Comment

by:rinfo
ID: 37792875
I have compiled the codes in XE2.
I understand you have done the same successfully because you have mentioned about the error its generating on running.
It create and start  server all right which i understand will be listening to the assigned port alright.
But what next.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:sritharanb
ID: 37793342
While it is running.. once in a while..(mostly when the client is a .net website) is generates errors in the webservice program like
1. Connection Reset by peer
2. Elist error generated

I read in few articles that since indy is multithreated these errors do happen and if we do not put an OnException event these error popup wont show up but it does for me.
I dont know from where are these errors coming from and how to suppress them.

Any help is appreciated.
0
 
LVL 9

Accepted Solution

by:
rinfo earned 500 total points
ID: 37793405
The code you are posting is an example code of an article done on Emba.Dev.Network.
I suggest you read this article , download its source code , try as per the example and i am sure
you would be able to short it out.
The link for this article is
http://edn.embarcadero.com/article/41305
0
 

Author Comment

by:sritharanb
ID: 37794507
I will try this out and let you know if it works.
0
 
LVL 9

Expert Comment

by:rinfo
ID: 37796617
Hello
I have tested this example and it works perfectly.
What i understand is you must have tried to compile enclosed source unit as it is and run it.
And it will not work.
Just do as the article says step by step.
Important is first screen where you should click get free port and it should fill a port no there
which will be hard coded in the generated module and units.
Its just a matter of click and all the files including html, js and css will be created itself.
I am sure you can understand it quite well if you follow the instruction properly.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Contact management 16 178
WinxDVD Platinum 12 58
VMware ESXi 5.5 and SIM 4 115
Suggestions of cloud services for small businesses 9 23
If your app took Google’s lash recently, here are the 5 most likely reasons.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now