测试代码:
窗口程序集名 | 保 留 | 保 留 | 备 注 | 窗口程序集_启动窗口 | | | | 启动线程 (&子程序1, , cc )关闭线程句柄 (cc )调试输出 (“测试句柄数:”, 进程_取句柄数 (进程_取自进程ID ()) )SQL句柄 = 连接MySql (“127.0.0.1”, “123”, “456”, “789”, 3306 )断开MySql (SQL句柄 )
测试结果:
* “测试句柄数:” | 396
* “测试句柄数:” | 397
* “测试句柄数:” | 401
* “测试句柄数:” | 402
* “测试句柄数:” | 403
* “测试句柄数:” | 404
* “测试句柄数:” | 405
* “测试句柄数:” | 409
* “测试句柄数:” | 413
* “测试句柄数:” | 417
* “测试句柄数:” | 418
* “测试句柄数:” | 422
* “测试句柄数:” | 426
* “测试句柄数:” | 430
* “测试句柄数:” | 434
* “测试句柄数:” | 435
* “测试句柄数:” | 439
* “测试句柄数:” | 440
* “测试句柄数:” | 444
* “测试句柄数:” | 445
* “测试句柄数:” | 446
* “测试句柄数:” | 447
* “测试句柄数:” | 451
* “测试句柄数:” | 452
* “测试句柄数:” | 453
* “测试句柄数:” | 454
* “测试句柄数:” | 455
|