Rapid key press | developer.brewmp.com Rapid key press | developer.brewmp.com

Developer

Rapid key press

Forums:

Hi all,
I have an issue in T720.For rapid key presses to draw a text, the application crashes.If key press is one after the other,there is no crash.Can anyone suggest on this..

Thanks

T720 : i dont know how u handled the code but it never gets crashed for continuos key presses

T720 : i dont know how u handled the code but it never gets crashed for continuos key presses

I've had issues with this on some phones. I found that if I have a very long keypress handler that allocates RAM that is freed elsewhere, bad things happen :) This was about a year ago, so I don't quite recall what went down. Basically though, if you press the buttons rapidly, and your keypress handling code takes a long time, you're gonna bog the event handler down and your main function won't be called between keypresses, so you can build up a whole heap of badness.
So, try simplifying your keypress routine, and try moving intensive code into EVT_USER or something instead.

I've had issues with this on some phones. I found that if I have a very long keypress handler that allocates RAM that is freed elsewhere, bad things happen :) This was about a year ago, so I don't quite recall what went down. Basically though, if you press the buttons rapidly, and your keypress handling code takes a long time, you're gonna bog the event handler down and your main function won't be called between keypresses, so you can build up a whole heap of badness.
So, try simplifying your keypress routine, and try moving intensive code into EVT_USER or something instead.