Re: AccessViolationException and Native Exception
- From: paolo.patierno@xxxxxxxxx
- Date: Fri, 01 Jun 2007 06:44:01 -0000
On 31 Mag, 16:02, paolo.patie...@xxxxxxxxx wrote:
On 31 Mag, 15:46, "Ginny Caughey [MVP]"
<ginny.caughey.onl...@xxxxxxxxxxxxxx> wrote:
Thanks. I look forward to the sample. Is it possible you're trying to
dispose a data reader you've already closed or something like that?
--
Ginny
<paolo.patie...@xxxxxxxxx> wrote in message
news:1180618218.459229.38130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello Ginny,
while I prepare the sample you asked me, I send you the exception
detail thrown :
System.AccessViolationException non è stata gestita
Message="Tentativo di lettura o scrittura della memoria protetta.
Spesso questa condizione indica che altre parti della memoria sono
danneggiate."
Source="System.Data.SqlServerCe"
StackTrace:
in System.Data.SqlServerCe.NativeMethods.SafeRelease(IntPtr&
ppUnknown)
in System.Data.SqlServerCe.SqlCeDataReader.Dispose(Boolean
disposing)
in System.Data.SqlServerCe.SqlCeDataReader.Finalize()
I hope this help...
Ginny Caughey [MVP] ha scritto:
I'm not aware of any problems with drivers, and especially since you're
using the .NET wrappers. Do you have a small reproducible sample?
--
Ginny
<paolo.patie...@xxxxxxxxx> wrote in message
news:1180596359.936238.294550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 30 Mag, 18:59, "Ginny Caughey [MVP]"
<ginny.caughey.onl...@xxxxxxxxxxxxxx> wrote:
Are you using a single connection throughout your app, or different
connections for each thread?
--
Ginny
<paolo.patie...@xxxxxxxxx> wrote in message
news:1180535055.100686.32530@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I'm developing a multithreading application in C# with Compact
Framework 2.0 and Sql Server 2005 Compact Edition. Sometimes and
randomly, the following exception is thrown :
AccessViolationException in System.Data.SqlServerCe.NativeMethod()...
Why ?
Thank you, very much.- Nascondi testo tra virgolette -
- Mostra testo tra virgolette -
Actually, the methods to access the database are in a single thread
and each method opens the connection, does the operations and finally
closes the connection. I don't think it's a problem of multithreading,
because others threads don't use the database. Is there any problem in
the SQL Server Compact Edition drivers ?- Nascondi testo tra virgolette -
- Mostra testo tra virgolette -
But the error is randomly. Sometimes, the same code work properly and
other times it's go wrong and the exception is thrown. I'm writing the
sample and I post it shortly (in 10 minutes). Thank you very much for
your help.- Nascondi testo tra virgolette -
- Mostra testo tra virgolette -
Good morning, Ginny...
yesterday I have solved the problem with yuor suggestion. There were
some DataReader unclosed !!!
Thank yuo very much for your help.
.
- Next by Date: Re: SQL Compact Edition - Connection Pool --> Slow!
- Next by thread: Re: SQL Compact Edition - Connection Pool --> Slow!
- Index(es):
Relevant Pages
|
Loading