[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Delphi XE2 Indy Error

Posted on 2012-03-30
7
Medium Priority
?
1,601 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

 

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 2000 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Curious about the latest ransomware attack? Check out our timeline of events surrounding the spread of this new virus along with tips on how to mitigate the damage.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

656 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