I install correctly my Pocket PC application on the device but when I try to execute it I get the following error:

en DeviceApplication2.Form1..ctor()
en DeviceApplication2.Program.Main()"

Any idea

Thank you.

Re: .NET Compact Framework Problem when executing my app.

Ilya Tumanov

NRE means you're trying to use object you don't have. It's common coding error - you forgot to use new operator to create an instance or did not check if whatever you're doing returned object as expected and your application terminated with NRE. Use debugger to fix it.

Here¡¯s a sample:

string foo; << No instance, just a reference to nothing.

int i = foo.Length; << NRE here ¨C there¡¯s no string to get length.