Windows Mobile: Freeze on Focus Lost / Gain

2 posts / 0 new
Last post
Viras
viras@users.sourceforge.net's picture
Offline
Joined: 10 Aug 2010
Posts:
Windows Mobile: Freeze on Focus Lost / Gain

Hi!

First of all, I'm new to MoSync but I've developed quite a while for Windows Mobile. As I'm working on a OpenSource Application, I wanted to make it Cross-Platform and that's how I discovered MoSync. So far I can only say "thumbs up" - a very great framework which makes a developers life much easier.

I'm currently experiencing a problem when running my app on a windows mobile device (Samsung SGH-I900 Omnia):
When the application loses the focus (like when I change to the task manager, or when I activate GPS and the XTRA data is downloaded) and regains it (so if I switch back to the application), it freezes the whole device. I can not do anything anymore - removing the battery to reset the device is the only way.

Am I missing something on the focus-gain event or is this a bug?

I would be thankful for any hints!

Regards,
Viras

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Viras
viras@users.sourceforge.net's picture
Offline
Joined: 10 Aug 2010
Posts:

So, I've tracked down the problem to a kinda strange problem:

On Restore of the device the touch-detection seem to have some kind of offset. So pointerPressEvents have coordinates which have an offset against the upper left corner of the screen. If I click in the "dead" zone (so the area which has negative coordinates due to the offset), the click gets accepted in the program "behind" my application. (So e.g. the start menu can be opened).

I will open a bug report for this and see what the problem might be!