Java Dobot Tutorial DLL won't load unless I have a breakpoint


#1

The line “DobotResult ret = DobotResult.values()[DobotDll.instance.ConnectDobot((char)0, 115200)];” where it loads the library causes it to terminate. However if I put a break point there it works properly and the
code runs fine. What is wrong?

             private void Start() {
	    DobotResult ret = DobotResult.values()[DobotDll.instance.ConnectDobot((char)0, 115200)];
	    // ¿ªÊ¼Á¬½Ó
        if (ret == DobotResult.DobotConnect_NotFound || ret == DobotResult.DobotConnect_Occupied)
        {
            Msg("Connect error, code:" + ret.name());
            return;
        }
        Msg("connect success code:" + ret.name());
   
        StartDobot();

        StartGetStatus();
    }