Memory in Use Error 100048

Hi,


I have been using Cloud Pack for some time. Use it with XE7 the Dropbox Components and has worked fine.

Am trying it out with Seattle Rad Studio 10.  Now I am getting a 'Socket Error Address already in Use ERROR 100048' when Do.Auth is executed. I understand this is something to do with the Indy components used, but I am not savvy enough to know where to start looking to rectify this error.

procedure TAdvDropBox.DoAuth;
var
  url: string;
  locale, l: string;
begin
  inherited;

 SNIP...............

  if not Assigned(FHttpServer) then
    FHttpServer := TIdHTTPServer.Create(Owner);

  FHttpServer.Active := false;
  FHttpServer.DefaultPort := App.CallBackPort;
  FHttpServer.OnCommandGet := DoCommandGet;
  FHttpServer.Active := true;  <----ERROR HERE

Of course, and at the moment, it is an absolute rate limiter.

Again, I'm at a loss. Any ideas???

UPDATE:


I'm not getting the 100048 error consistently. In fact almost not at all now. I do get the following error:

Error (400)

It seems the app you were using submitted a bad request. If
you would like to report this error to the app's developer, include the
information below.

More details for developers

Invalid redirect_uri. When
response_type=code, only localhost URIs can start with "http://"; all others
must start with "https://".


As far as I am aware, this is exactly the same code that is working with XE7 and I do not get the above error. Yes, I did check...

Cheers,
Kevin


This error indicates that the value for the CallBackPort is already in use.
You can change the CallBackPort and CallBackURL property values to use a different port and avoid this error.


This error indicates that the value of the CallBackURL property is not identical to a value defined in the list of Redirect URIs on the DropBox developer page. (https://www.dropbox.com/developers/apps)
Please make sure these values are identical.