N
n33470
Hi all,
We just installed the OpenNetCF 1.3 on our VS2003 development PC.
We're trying to prototype a SmartPhone application that uses the GPS
capability from the OpenNetCF library. We're running inside of the
SmartPhone emulator only, as we don't have the GPS receiver yet.
We run the following code from a menu click:
private void menuItem5_Click_1(object sender, System.EventArgs e)
{
try
{
OpenNETCF.IO.Serial.GPS.GPS gps = new OpenNETCF.IO.Serial.GPS.GPS();
}
catch(Exception ex)
{
// the exception does NOT get caught here
_lastInputValue = ex.Message;
}
}
And it throws a System.TypeLoadException. The unusual part is that it
does not get caught in the click hander, rather it gets caught in the
static void main exception handler:
static void Main()
{
try
{
Application.Run(new Form1());
}
catch(Exception ex)
{
// the exception gets caught here. Whats up with that?
throw ex;
}
}
Are there any know problems calling the constructor on the GPS object
from within the emulator?
Any ideas?
Thanks!
--steve
We just installed the OpenNetCF 1.3 on our VS2003 development PC.
We're trying to prototype a SmartPhone application that uses the GPS
capability from the OpenNetCF library. We're running inside of the
SmartPhone emulator only, as we don't have the GPS receiver yet.
We run the following code from a menu click:
private void menuItem5_Click_1(object sender, System.EventArgs e)
{
try
{
OpenNETCF.IO.Serial.GPS.GPS gps = new OpenNETCF.IO.Serial.GPS.GPS();
}
catch(Exception ex)
{
// the exception does NOT get caught here
_lastInputValue = ex.Message;
}
}
And it throws a System.TypeLoadException. The unusual part is that it
does not get caught in the click hander, rather it gets caught in the
static void main exception handler:
static void Main()
{
try
{
Application.Run(new Form1());
}
catch(Exception ex)
{
// the exception gets caught here. Whats up with that?
throw ex;
}
}
Are there any know problems calling the constructor on the GPS object
from within the emulator?
Any ideas?
Thanks!
--steve