Monday, November 24, 2008

Sending WM_WININICHANGE message on device with HTC TouchFlo 3D will crash the device

Today I finally solved a very strange bug in a Windows Mobile project Im currently working on. The bug would only show up on HTC devices, and not our HTC devices we had at our location. After the application was installed and the user started it, the whole device would freeze and reboot itself after a minute or so.

After some digging around, rebuilding, re-installing for way too many times; we found out that if the HTC TouchFlo 3D today plugin was enabled the device would crash. With that knowledge I was able to pin point the location of the failure which was that the installation DLL sends a
WM_WININICHANGE message to refresh the PocketPc Today plugins.

As many
sites and forum posts states, this is the only way to refresh the Today plugins.

::SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);

Of course, this is not documented anywhere within MS documentation; and the
documentation that exists states that the wParam isnt used at all (which in fact it is).

It seems that the HTC TouchFlo 3D isnt capable of handling the
WM_WININICHANGE properly, and even just opening the calendar application after that sending that message will crash the device. So if your WindowsMobile application sends that message, I would advise you to look into this. Using the replacement message WM_SETTINGCHANGE does not change anything, the device will still crash.


One solution is to check if the HTC TouchFlo Today plugin is enabled, which can easily be retrived through the regkey
"HKLM\Software\Microsoft\Today\Items\TouchFLO 3D\Enabled". If it is enabled, then do not send the WM_WININICHANGE message.

12 comments:

Toni Johansson said...

Erik:

Are you developing any open applications, that are more open to the public sort of speak?

Contact me at: toni@winmobile.se

Have a nice weekend.

redsolo said...

Im working as a consultant for different companies, so one thing may apply to one company and another thing may apply to another company. So I will not refer to any particular company so there will not be any misunderstandings.

buy Cialis said...

I suggest the organizers arrange some other merchandise - not just the book but other items, such as bespoke 'architectural' jewellery or highly textured textiles - to ensure the wives compete rather than consort.

Viagra Online said...

It's true that message can crash your device so be careful with it!

hcg said...

A very nice informational blog.Keep on making such important blog post.Your work is really being appreciated by some one.

Dubai homes said...

Thanks for both using do follow links and for posting up your rules. I also allow do follow links for many of my blog sites, and really cant get my head around the opposition to them that many blog owners.

saim said...

I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think.


natural minerals
best naturals
buy curcumin

Agen Judi Online said...

I think this is one of the most important information for me. And i am glad reading your article. But want to remark on some general things, The site style is ideal, the articles is really great. 338A Sbobet Casino Agen Sbobet

Judi Bola said...

I think this is one of the most important information for me. And i am glad reading your article. But want to remark on some general things, The site style is ideal, the articles is really great. Agen Sbobet 338A

Judi Bola Online said...

If some one needs to be updated with hottest technologies then he must be pay a quick visit this web page and be up to date everyday. 338A Sbobet

friv said...

What can not be stopped enthusiasts.

vimax original said...

* obat impotensi *
* jamu kuat pria *
* alat bantu sex lesbian *
* sextoys getar silikon *
* alat bantu pasutri *
* alat bantu wanita *
* dildo getar ukuran kecil *
* obat pelangsing badan herbal *
* ramuan perangsang wanita alami *
* cara membuat payudara kencang *
* cara memperbesar kelamin *
* minyak lintah papua asli *
* obat vimax original asli canada *
* alat bantu pria *
* alat bantu wanita *
vimax original
vimax asli canada
obat vimax asli
jamu kuat pria
jual vimax asli
kapsul vimax
vimax indonesia
harga vimax
ciri ciri vimax asli