窗口程序集名 | 保 留 | 保 留 | 备 注 | 窗口程序集_窗口1_医保 | | | | 变量名 | 类 型 | 数组 | 备 注 | 线程 | 整数型 | |
按钮1.禁止 = 真 线程 = 线程_启动 (&YB_network, , ) 计次循环首 (40, ) network = 通信测试 (“10.109.103.38”, 1000 ) 判断 (network = -1 )  外形框2_red.可视 = 真   外形框1_green.可视 = 假  日志 (“分析结果:” + “网络故障”) 判断 (network ≠ -1 )  外形框2_red.可视 = 假   外形框1_green.可视 = 真       计次循环尾 ()外形框1_green.可视 = 假 外形框2_red.可视 = 假 如果 (编辑框_nettest.内容 ≠ “”) 信息内容 = 编辑框_nettest.内容  编辑框_nettest.内容 = 信息内容 + #换行符 + 输出信息  编辑框_nettest. 发送信息 (277, 7, 0 ) 编辑框_nettest.内容 = 输出信息 线程_销毁 (线程 )
现在的问题是:这个是被载入的窗口,当我关闭这个窗口,之前的启动窗(主窗口就会卡死)或者自动就退了,不使用循环就没问题,麻烦大佬看下原因,告诉我下谢谢,我使用时钟也是一样的问题。
|