help! - native exception in CF 1.0 w/Service Pack 3 installed?

T

Terry Robinson

Hi all,

We have an application that is generating a 'native exception' error
and closing the application/crashing.

I understand that we should not see a native exception in mananged code
(we have no unmananaged code), but nevertheless, we get it
intermitently.

It would seem to revolve around a call to dataSet.ReadXml() or
subsequent calls to this line of code. We initially thought it may be
down to locking/contention issues, so we called lock() on the
dataSet/Table as appropriate, but we still get the error.

Our call to ReadXml() is in a thread, as it is basically a timed method
for bringing down jobs from a SQL server.

We get the impression/feeling that ReadXml() may be overlapping with
another block of code, accessing the same data, but cannot narrow it
down any nearer than the call to ReadXml() causing the problem.

we are quite new to .NET/CF development, as traditionaly we have used
delphi for our developments.

I was wondering if anyone has any idea's or tips with regards to
tracking this issue down and resolving it?

My questions are as follows:

1. Is there a way to trap/break on a native exception, as we are hoping
to stack trace back; to find the offending code/issue?

2. Does anyone have any tips to help us track down this problem or has
anyone come across a similar problem?

3. are there any lightweight database engines out there for the compact
framework, other than SQLCE (not what i would consider lightweight;)?

Any help would be greatly appreciated.

Best Regards,

T. Robinson
(e-mail address removed)
 
C

Chris Tacke, MVP

I'd put money on it that it's actually due to an out of memory condition.
Try ensuring that you're using minimal memory during the process, even
calling GC.Collect explicitly, to see if that affects the behavior.

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top