PocketMatrix forums

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

App not activated correctly.

Hallo,

I am tiring to port Blender on pocketpc and it begins to really work (http://blenderce.blogspirit.com/). I use OpenGL ES and compiled blender both on PocketPC but also on my PC.

When I run it (on PocketPC or PC), I loose the control of the application after ONE clic…Blender is not reacting anymore… if I clic on the “windows key” and then activate the Blender window… everything work good again!! ??? The same behaviour on my PocketPC! I need to program an hardware button for the today screen toactivate the Blender Window…

I tried ShowWindows, WindowPos but no sucess...

Do someone has an idea?

Thanks,
Salvatore
You might not be handling the WM_LBUTTONUP properly. I seem to remember in the past handling a button down message but not button up (or vice versa) and that caused some problems.

Also, it might be calling SetCapture to capture mouse input, but not releasing it with ReleaseCapture (which should be called when handling WM_LBUTTONUP).

Dan East
Thanks Don east.

Two precisons:
1) it only happens once... I mean for the first clic… then everything works fine.
I read that GetCursor position was not working for pocketpc so I only used LOWORD(lParam) and HIWORD(lParam).

I will have a better look if SetCapture is used somewhere…

2) If I create my window with the WS_VISIBLE or VISIBLE| WS_POPUP the problem is there for Win32… if I use the only style WS_POPUP, it works perfectly for Win32… but for PocketPC, then it doesn’t works!! It seems that for PocketPC, I can only use WS_VISIBLE to make Blender work…

Thanks for your help,
Salvatore
Can you do some debugging to see if the events stop firing? You can also use Remote Spy to see what events are being sent to your window.

Dan East
Hallo Dan,

For any reason, I discovered that my window was not activated at creation time... and then Blender was not happy at all. But I push an activation event in the event queue and it works. Your answers helped me to locate the problem!

Thanks,
Salvatore