?
Solved

Delphi XE2 Indy Error

Posted on 2012-03-30
7
Medium Priority
?
1,594 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
I originally wrote this article to compare SARDU and YUMI, but have now added Easy2Boot, since that is the one I currently use and find the easiest to create and alter.
This video shows how use content aware, what it’s used for, and when to use it over other tools.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

765 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