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

dotnet compact framework

group:

Native Exception on key press


Native Exception on key press Murthy
3/30/2006 11:51:03 PM
dotnet compact framework:
Hi,
I developed an Pocket PC Application. In this When i am using Short cut keys
for Buttons (like F1, F2), I is throwing me Native Exception.

I am using .net CF 1.0 with Service Pack-3.

Does does any one have any idea why i am getting this Exception.

I am using the KeyUP Event of Text box and Form to capture the Key Press.

Following are the Error Details.

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

Thanks in Advance,
Rayudu

When i am using Stylus it is working fine.

RE: Native Exception on key press Alex Yakhnin [MVP]
3/31/2006 12:31:02 PM
There's something in your code. Show us your code.

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


[quoted text, click to view]
RE: Native Exception on key press Murthy
4/2/2006 11:08: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{}
}

More over I am using the same event for all the textbox keyup events. This
is working fine in some screens and we are not able to reproduce this error
first time consistently. But once we get this error for the first time, then
we are able to reproduce it.

Thanks in Advance.

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