Native Exception while running the Application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am getting a Native Excpetion when I am running my Application in a
Windows CE. NET 4.2 device. I am getting the Exception when I am trying to
use Functional keys(F1, F2,..) for various functionalities in the application.

The Application is a Smart Device Application for Pocket PC(not for Windows
CE) developed in Visual Studio .NET 2003 using C#.

As our plan is to have a single application to run on two devices namely
Pocket PC 2002 and Windows CE.NET 4.2, We have built the application for
Pocket PC and trying to run on .NET device. Its not giving any exceptions on
Pocket PC 2002.

Then, I tried to replicate the same project with Windows CE as the platform
(I created a new project and copied all the files from the previos project)
but still its giving an exception.

Please could any one help me in this regard.

Thanks in advance...
 
Hi,
In the KeyUp event of all the textboxs and form, I am calling the following
function.

private void FunctionalKeys(object sender, System.Windows.Forms.KeyEventArgs
e)
{
try
{
switch(e.KeyCode)
{
case Keys.F2:
btnConfirm_Click(sender, e);
return;
case Keys.F1:
btnCancel_Click(sender, e);
return;
}
}
catch{}
}

i even tried passing null as parameters to the button press event but with
no success. the code is working fine with Stylus. the Problem is only when i
am using the functional keys it is throwing the following Native Exception.

Exceptioncode : 0xc0000005
ExceptionAddress : 0x033144b8
Reading : 0x0e000009
 
Back
Top