Jump to content

Problemas com vb .net e sqlite


HQuintas
 Share

Recommended Posts

Boas

Troquei de máquina e de versão do vb .net.

Agora está me dando um erro (mas estive isto a funcionar neste pc novo)

Erro:

"An unhandled exception of type 'System.AccessViolationException' occurred in System.Data.SQLite.dll

Additional information: Tentativa de ler ou escrever na memória protegida. Isto é normalmente uma indicação de que existe outra memória danificada."

Sempre que vai abrir a conexão a base de dados, dá-me este erro.

Windows 10 pro (64bit)

Versão do vb .net 2013

Framework v4.0

System.Data.SQLite .net 1.0.79.0

Como resolver?

Obrigado

Link to comment
Share on other sites

Boas

Na verdade continuo com problemas desde que mudei e actualizei a dll do sqlite para 1.0.99.0

Estamos surgindo muitos erros.

"An unhandled exception of type 'System.Data.SQLite.SQLiteException' occurred in System.Data.SQLite.dll

Additional information: database is locked

database is locked"

Ao fazer uma simples rotina:

Dim strSQL As String = "delete from optimiza"
Dim cmd As New SQLiteCommand(strSQL, connection)
connection.Open()
cmd.ExecuteNonQuery()
connection.Close()

O que se passa?

Edited by HQuintas
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.