Search code examples
serverpascaloberoncomponent-pascal

Can't start a server in BlackBox


I'm trying to start a server in BlackBox and so far I have just this

    MODULE server;
        IMPORT Dialog,Strings,Win:=WinApi, Server:=CommObxStreamsServer, Stream:=CommStreams;

    BEGIN
        Server.Start();
        Server.Stop();
    END server.

and when I run it I get the error server:error starting the server(2). I looked up that error 2 means invalid local address but start method doesn't require any arguments and I don't get where should I specify my local address: code from documentation (theories: do i need to start a new listener myself? are default ports busy? (upd:it's 900 and it's open))

SOLVED! In CommObxStreamsServer file: localAdr="900" change to localAdr="localhost:900"


Solution

  • In CommObxStreamsServer file: localAdr="900" should be changed to localAdr="localhost:900"