PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PocketHAL 0.7.6 incorrectly sends WM_ACTIVATE to the app

Hi Thierry,

Starting with PocketHAL 0.7.5 (or possibly 0.7.6), PocketHAL applications using GapiDraw receive the WM_ACTIVATE (WA_INACTIVE == LOWORD(wParam)) event after the first Swap().

The thing is that GapiDraw once it receives this event minimizes nicely, to allow for incoming phone calls etc (which also send this event). I don't know how the PocketHAL samples work on Smartphones, but it is my guess that they just keep on running even after they receive the INACTIVATE event. All GapiDraw samples however simply minimize once they are started.

I can add a switch to my application wrapper to simply ignore this event if PocketHAL is used, but a better solution would be that this is fixed in PocketHAL. This issue has been tested on various devices such as the hx4700, the ipaq 2210, and the Viewsonic v37.

Regards,
Johan
That was me by the way, I was unfortunately logged out...
I will investigate the issue shortly. But I don't understand why PocketHAL would be sending any WM_ACTIVATE messages.

Is this something that you could reproduce with the PocketHAL samples? I have never seen this behavior with them and I see no reason why it would be different with GapiDraw.
Hi Thierry,

Thanks for the prompt reply. I'll also dig a bit deeper to see what happens.
I cannot find anything wrong on my side. All the PocketHAL samples work properly on my iPAQ 2210 and my Mitac Mio Smartphone 2003.

The problem must be on your side.