我一直在努力检查MySQL数据库来检查某些内容 - 但是由于它不断检查数据库,程序停止响应。是否有可能等待几秒钟来重新检查数据库?我曾尝试睡眠(),但它给人一种奇怪的错误:如何等待MySQL在VB.NET中更新?
A call to PInvoke function 'Game!WindowsApplication1.Form1::Sleep' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
我一直在寻找这个相当长的一段时间,我在一个困境。我确实需要经常检查MySQL数据库。我在再次检查之前尝试进行网络浏览器刷新 - 但它开始滞后于应用程序。
代码:
function updateit()
' SQL Code goes here, it succeeds.
updateit() ' Update it again.
return true
end
updateit()
请发布您的代码。 –