我一直在努力檢查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()
請發佈您的代碼。 –