Solved

Delphi XE2 Indy Error

Posted on 2012-03-30
7
1,559 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

746 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