我在vb.net写道,我有一份申请。 当申请启动时,它便与我的ql数据库联网,以便获取一些数据,一旦完成,就着手进行。
问题在于,它有时被困在地板上,在要求不发生任何事情之后,我就意味着我计划停止。 这可能是因为互联网问题或服务器。
Is there a way the program can determine that x seconds has elapsed and it has not got any data, so self terminate it. I tried using timer to perform this action but as the program requests for data, it gets stuck, I mean it locks up and thus timer also locks up and only after task is done everything resumes.
我希望,当方案即将启动时,我可以开始一个时间,确定X秒已经过去,因此现在终止申请。
让我知道我如何能够这样做?
感谢
Cheers, Greatchap