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.


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.


Toni Johansson said...


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

Contact me at:

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

sinta dewi said...

Agen Casno Online | Agen Bola Online | Agen Judi Online

javeline wijaya said...

javeline wijaya said...

Prediksi Bola | Judi Bola | Judi Online | Casino Online

sinta dewi said...

Agen Casino Online | Agen Bola Online | Agen Judi Online

friv 4 school said...

I am an avid reader who likes engaging content. That's why I am here. Your original views on this topic are refreshing and interesting. You've done a great job of expressing your views. Thank you.
tu 95| call of duty| clicker heroes| strike force heroes 2| kitten cannon

Seo Expert said...

Hi… that was great stuff.. I really like this subject. Could you tell me more … I would love to explore. SEM Expert in Lahore

Soc Cute said...

With a Hotmail account, you can send and receive emails quickly and easily as well as login and use all Microsoft services.
hotmail login | sign in to hotmail | recover hotmail password
This is the game so players feel very fierce , adventurous . You try to join and play this game , you will feel great like.
strike force heroes 4 | | red ball | duck life
fireboy and watergirl 2 | io games | tank trouble 2

Miko Bella said...

Thanks for sharing the information. It is very useful for my future. keep sharing. A good blog.
run 2 unblocked | slitherio | atari breakout |

رضا رمضان said...

خدمات نقل الاثاث متعددة لدينا حيث يوجد لدينا خبرة في كيفية التعامل مع العملاء في تنفيذ اعمال فلدينا مدينة مكة افضل شركة نقل اثاث بمكة التي تتميز بالدقة في تنفيذ اعمال وتوصيل الاثاث من الباب لاننا نمتلك عمال متميزون في شركة نقل عفش بمكة فعليكم التواصل معنا من اجل الاستفادة من الخدمات التي نقدمها كل هذا ايضا تلاقه في مدينة الدمام من خلال التواصل مع شركة نقل اثاث بالدمام التي تمتلك فنين متميزين في اعمال الفك والتركيب كما لديها اسطول سيارات مجهز يساعدها علي الوصول الي منزلك الجديد فكل شئ يكون جاهز مع شركة نقل عفش بالدمام التي اثبتت انها نقل شركة لديها خبرة كبيرة في مجال نقل الاثاث
كما يوجد لدينا خبرة في خدمات نقل الاثاث بجدة من خلال
شركة نقل اثاث بجدة
شركة نقل عفش بجدة

Esraa Abbas said...

عبده العمراوى said...

شركة تنظيف منازل بجازان

learn to fly 2 said...

Great blog and you are always provided with access to provide useful information like this to us.