当指定超时时,不应该'ReadFile'阻止??? [英] Shouldn't 'ReadFile' block when timeouts are specified ???
问题描述
即使在
重叠模式下运行时指定超时也不应该'ReadFile''阻止或者我错了???
谢谢
Ole
Shouldn''t ''ReadFile'' block when timeouts are specified even when running in
overlapped mode or am I wrong ???
Thanks
Ole
推荐答案
ORC< or*@sol.dk>写道:
ORC <or*@sol.dk> wrote:
当指定超时时,即使在
重叠模式下运行或者我错了,也不应该ReadFile阻止???
Shouldn''t ''ReadFile'' block when timeouts are specified even when running in
overlapped mode or am I wrong ???
ReadFile究竟是什么?它没有出现在MSDN索引中...
-
Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet
如果回复该组,请不要给我发邮件
ReadFile being what, exactly? It''s not coming up in the MSDN index...
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
抱歉 - readfile是一个API调用,但是我用C#写了我的应用程序
我不知道在哪里提出我的问题。 readfile通过P / Invoke实现
。我已经将COMMTIMEOUTS(也是API的一部分)设置为
等待2秒,然后在调用readfile期间超时。
谢谢
Ole
" Jon Skeet [C#MVP]" < SK *** @ pobox.com>在消息中写道
新闻:MP ************************ @ msnews.microsoft.c om ...
Sorry - the readfile is an API call but I write my application in C# and
don''t know where else to place my question. The readfile is implemented
through P/Invoke. I have set the COMMTIMEOUTS (also part of the API) to
wait 2 seconds before timeing out during a call to readfile.
Thanks
Ole
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
ORC< or*@sol.dk>写道:
ORC <or*@sol.dk> wrote:
当指定超时时,即使在重叠模式下运行
或者我错了,也不应该'ReadFile''阻塞???
Shouldn''t ''ReadFile'' block when timeouts are specified even when running in overlapped mode or am I wrong ???
<读取文件是什么,究竟是什么?它没有出现在MSDN索引中......
- Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet
如果回复群组,请不要给我发邮件
ReadFile being what, exactly? It''s not coming up in the MSDN index...
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
ORC< or*@sol.dk>写道:
ORC <or*@sol.dk> wrote:
抱歉 - readfile是一个API调用,但是我用C#编写了我的应用程序,并且不知道在哪里提出我的问题。 readfile是通过P / Invoke实现的。我已经将COMMTIMEOUTS(也是API的一部分)设置为等待2秒,然后在调用readfile期间超时。
Sorry - the readfile is an API call but I write my application in C# and
don''t know where else to place my question. The readfile is implemented
through P/Invoke. I have set the COMMTIMEOUTS (also part of the API) to
wait 2 seconds before timeing out during a call to readfile.
啊,对。这是在Compact Framework下,对吗?如果是这样,我会在其中一个PocketPC组或Compact Framework组中询问
。
可能会有更多具有该功能经验的人
那里。
-
Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet
如果回复小组,请不要给我发邮件
Ah, right. This is under the Compact Framework, correct? If so, I''d ask
in either one of the PocketPC groups, or the Compact Framework group.
There are likely to be more people with experience of the function
there.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
这篇关于当指定超时时,不应该'ReadFile'阻止???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!