all groups > dotnet compact framework > march 2006 >
You're in the

dotnet compact framework

group:

Native Exception while running the Application



Native Exception while running the Application Srik
3/31/2006 2:02:01 AM
dotnet compact framework: 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.

Re: Native Exception while running the Application Chris Tacke [MVP]
3/31/2006 11:17:49 AM
Show us some code.

-Chris


[quoted text, click to view]

Re: Native Exception while running the Application Murthy
4/2/2006 11:18:02 PM
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

[quoted text, click to view]
AddThis Social Bookmark Button