PythonYunfei

Results 35 comments of PythonYunfei

> the only remaining possibility is that the server was closed before the script finished. But `ConnectNamedPipe()` will wait and block the thread, until connected. How this possible. If the...

> This has nothing to do with WaitNamedPipe. > > The ahk process is started by reading the source from the pipe, and has 2 seconds to complete the task...

`FileOpen`的底层是不是一定会调用`CreateFile()`? 通过管道启动完AHK代码,调用完`FileOpen`之后,底层是不是一定已经调用了至少两次`CreateFile()`? ```ahk DllCall("CreateNamePipe","str",A_ScirptFullPath,...) DllCall("CreateFile","str",A_ScirptFullPath,...) DllCall("CreateFile","str",A_ScirptFullPath,...) ``` 要不您先测试一下,也占用不了你多少时间:两次请求同一个管道名,上面的第三行`DllCall("CreateFile","str","\\.\pipe\" A_ScirptFullPath,...)`,您确定能调用成功? 如果不能调用成功,是不是应该改成下面这样? ```ahk DllCall("CreateNamePipe","str",A_ScirptFullPath,...) DllCall("CreateNamePipe","str",A_ScirptFullPath,...) DllCall("CreateFile","str",A_ScirptFullPath,...) DllCall("CreateFile","str",A_ScirptFullPath,...) ``` 如果`DllCall("CreateNamePipe","str",A_ScirptFullPath,...)`部分,是在另一个进程;那么,第二次调用`DllCall("CreateFile","str",A_ScirptFullPath,...)`之前,是不是应该先调用`WaitNamedPipe`?

I hear that rare async issues are often triggered by heavy system load.

Thanks.😀 Always welcome to post any issues. Any efforts to help improving will be appreciated.