Errors when opening forms

W

Wade

Hey all,

Using the .NET 2.0 Compact Framework for a PPC 2003 application, I am
getting all kinds of errors when I open up forms. I see the errors in the
Immediate Window when debugging. Errors such as:

A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.UnauthorizedAccessException'
occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.UnauthorizedAccessException'
occurred in mscorlib.dll
A first chance exception of type 'System.UnauthorizedAccessException'
occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.UnauthorizedAccessException'
occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.UnauthorizedAccessException'
occurred in mscorlib.dll


Anyone know what might be causing this, or how I might debug it?

Thanks,

Wade
 
I

Ilya Tumanov [MS]

W

Wade

So this is just something I'll have to live with and ignore? Throwing
exceptions is expensive ... and it's consuming resource. These forms aren't
that big, yet they take 5+ seconds just to load, because it keeps throwing
these exceptions.

In my opinion, this is a significant problem, and hardly something I want to
just live with and ignore.
 
I

Ilya Tumanov [MS]

Either that or you can prevent that from happening. For example, you can
avoid this code path by caching resources instead of retrieving them every
time.



Another code path which would trigger handled exceptions - exception with
error message thrown while executing your code which is up to you to avoid.



In any case, it's on our list of improvements for next version of NETCF.

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

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