查看完整版本: Mysql.Data.dll無法刪除
頁: [1]

天兵才子 發表於 2015-3-12 08:08 PM

Mysql.Data.dll無法刪除



要刪除發行的程式的資料後發現Mysql.DATA.DLL存取被拒

不過在發行程式前讀取MYSQL都有做COLSE及DISCOLSE

但那悶的是使用者都無法刪除執行後的檔案 到底是哪裡沒釋放掉!!<div></div>

hatakc56923us 發表於 2015-3-12 11:41 PM

sounds like your process is still running and using the dll, try to kill the process completely

天兵才子 發表於 2015-3-13 07:48 AM

hatakc56923us 發表於 2015-3-12 11:41 PM static/image/common/back.gif
sounds like your process is still running and using the dll, try to kill the process completely

請問這個有解嗎?

無法貼圖上來怕被板規給DEL

hatakc56923us 發表於 2015-3-13 11:18 AM

天兵才子 發表於 2015-3-13 07:48 AM static/image/common/back.gif
請問這個有解嗎?

無法貼圖上來怕被板規給DEL

I need more info to answer you better, can you please provide more information, perhaps some code?

天兵才子 發表於 2015-3-14 08:08 AM

hatakc56923us 發表於 2015-3-13 11:18 AM static/image/common/back.gif
I need more info to answer you better, can you please provide more information, perhaps some code?

我找到解答

我把from.hide 沒有把 from.close() (code)


記憶體無法釋放  使用者沒關掉<br><br><br><br><br><div></div>

c0927431112 發表於 2015-3-14 01:09 PM

試下show processlist 在MYSQL
看到連到你要刪的檔案有沒連線中
然後用 KILL 來關閉連線

Jeepluo 發表於 2015-3-15 05:09 PM

沒有辦法刪除的問題通常都是發生在程式還在運作或執行服務中,可以到工作管理員或者是服務功能看看是不是還在運作,若在「工作管理員」就比較簡單中斷運作就好了,若是在「服務」,則要先改變啟動時的運作方式為「停止服務」,儲存後再「停止運行」,但最重要的要先移除軟體再處理,{:48:}否則重新開機後很有可能會出現不可預知的錯誤。

hatakc56923us 發表於 2015-3-17 04:37 PM

天兵才子 發表於 2015-3-14 08:08 AM static/image/common/back.gif
我找到解答

我把from.hide 沒有把 from.close() (code)


glad that your problem is solved, let me know if you have any other questions
頁: [1]