kasad 发表于 2012-7-31 14:25:03

为什么加lr_message就报10048的错?

lrs_create_socket("socket0", "TCP", "LocalHost={NewParam}", "RemoteHost=10.1.254.238:1720", LrsLastArg);

        lrs_send("socket0", "buf0", LrsLastArg);

        lrs_receive("socket0", "buf1", LrsLastArg);

        lrs_send("socket0", "buf2", LrsLastArg);

        lrs_receive("socket0", "buf3", LrsLastArg);

        lrs_send("socket0", "buf4", LrsLastArg);

        lrs_receive("socket0", "buf5", LrsLastArg);

        lrs_send("socket0", "buf6", LrsLastArg);

        lrs_receive("socket0", "buf7", LrsLastArg);
        sleep(2000);
        lr_message(lr_eval_string("{NewParam}"));
        lrs_create_socket("socket1", "TCP", "LocalHost={NewParam}", "RemoteHost=10.1.254.238:1868", LrsLastArg);

这样的话报:Action.c(23): lrs_create_socket(socket1, TCP, ...)
Action.c(23): Error : socket1 - Address already in use. Error code : 10048.
如果我在lrs_create_socket("socket1", "TCP", "LocalHost={NewParam}", "RemoteHost=10.1.254.238:1868", LrsLastArg);之前加上lr_message(lr_eval_string("{NewParam}"));就不报错,为什么?
页: [1]
查看完整版本: 为什么加lr_message就报10048的错?