Indy - catch EIdCouldNotBindSocket

Posted on 2006-04-20
Last Modified: 2010-05-19

I'm having this (probably trivial) problem with the above mentioned exception. I know it comes from me starting up multiple instances of the same application (containing a TIdUDPServer).

What I can't figure out is how do I catch it!?
It would be nice if the program could gracefully recover instead of crashing, right! :)

// abpdk
Question by:abpdk

    Author Comment

    Why do I suddently feel like an idiot...well were it not for the fact that I din't try this earlier, I think.
    Having the Active property set to false and setting it at runtime, it works just catching Exception.
    Like so:

        IdUDPServer.Active := true;
        on Exception do ShowMessage('Damn!');

    Accepted Solution

    Closed, 125 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    728 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

    20 Experts available now in Live!

    Get 1:1 Help Now