application crashes on pressing ALT,Arrow keys

View: New views
3 Messages — Rating Filter:   Alert me  

application crashes on pressing ALT,Arrow keys

by Jijesh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Everyone.

I have developed a small dataentry winforms application in c#. But the application is getting closed while pressing Arrow keys just after pressing ALT key in text boxes. It is not happening if we press any keys other than ALT. I am  getting the following exception as well:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.MenuTracker.ProcessKeys (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Menu.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Control.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.TextBoxBase.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Control.InternalPreProcessMessage (System.Windows.Forms.Message& msg) [0x00000]
  at System.Windows.Forms.Control.PreProcessMessage (System.Windows.Forms.Message& msg) [0x00000]
  at System.Windows.Forms.Control.PreProcessControlMessageInternal (System.Windows.Forms.Message& msg) [0x00000]
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:PreProcessControlMessageInternal (System.Windows.Forms.Message&)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000]
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000]
  at DETool.Forms.LoginForm.Main () [0x00000]

mono version: 2.0.1-4
operating system : ubuntu 9.0.4


Thanks in advance
Jijesh

Re: application crashes on pressing ALT,Arrow keys

by Stifu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There have been 2 major releases since Mono 2.0, so this bug may well already be fixed. Could you check with 2.4.x, or post the application so we can try?

Jijesh wrote:
Hi Everyone.

I have developed a small dataentry winforms application in c#. But the application is getting closed while pressing Arrow keys just after pressing ALT key in text boxes. It is not happening if we press any keys other than ALT. I am  getting the following exception as well:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.MenuTracker.ProcessKeys (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Menu.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Control.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.TextBoxBase.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Control.InternalPreProcessMessage (System.Windows.Forms.Message& msg) [0x00000]
  at System.Windows.Forms.Control.PreProcessMessage (System.Windows.Forms.Message& msg) [0x00000]
  at System.Windows.Forms.Control.PreProcessControlMessageInternal (System.Windows.Forms.Message& msg) [0x00000]
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:PreProcessControlMessageInternal (System.Windows.Forms.Message&)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000]
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000]
  at DETool.Forms.LoginForm.Main () [0x00000]

mono version: 2.0.1-4
operating system : ubuntu 9.0.4


Thanks in advance
Jijesh

Re: application crashes on pressing ALT,Arrow keys

by Jijesh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks stifu ..downloaded mono 2.4x and installed my application..Its working fine now..




There have been 2 major releases since Mono 2.0, so this bug may well already be fixed. Could you check with 2.4.x, or post the application so we can try?

Jijesh wrote:
Hi Everyone.

I have developed a small dataentry winforms application in c#. But the application is getting closed while pressing Arrow keys just after pressing ALT key in text boxes. It is not happening if we press any keys other than ALT. I am  getting the following exception as well:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.MenuTracker.ProcessKeys (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Menu.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Control.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.TextBoxBase.ProcessCmdKey (System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
  at System.Windows.Forms.Control.InternalPreProcessMessage (System.Windows.Forms.Message& msg) [0x00000]
  at System.Windows.Forms.Control.PreProcessMessage (System.Windows.Forms.Message& msg) [0x00000]
  at System.Windows.Forms.Control.PreProcessControlMessageInternal (System.Windows.Forms.Message& msg) [0x00000]
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:PreProcessControlMessageInternal (System.Windows.Forms.Message&)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000]
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000]
  at DETool.Forms.LoginForm.Main () [0x00000]

mono version: 2.0.1-4
operating system : ubuntu 9.0.4


Thanks in advance
Jijesh