Diffs between PPC2002 and Windows Mobile for PPC 2003

  • Thread starter Thread starter Paul Kay
  • Start date Start date
P

Paul Kay

In 'My App' I have a button which when tapped minimises the app and when
tapped and held closes the app. (The button is a version of the 'image
button' posted around the CF websites, apologies to it's original author, I
forget for now who posted the original)

This works fine on PPC2002 but on WMforPPC2003 the area of the underlying
Today screen beneath the button does not get redrawn, leaving initailly a
ghost of the button in it's tap and hold state and subsequently a ghost of
that portion of any other application run.

I have tried various techniques to resolve this on theWMforPPC2003 device
(in this case an Ipaq 2210) to no avail.

My current app close code is in essence :

Me.Hide()
MySleep(500) ' A call to the API Sleep, in case 'things were happening too
quickly' on the WMf0rPPC2003 device

' An attempt (successful) to destroy the window as all else seemed to fail

Dim hWindow As IntPtr
hWindow =FindWindow(Nothing, Me.Text)
Me.Text = ""
SendMessage(hWindow, WM_DESTROY,0,0)

MySleep(500) ' Ditto

Me.Close()

To re-iterate all the above works fine on PPC2002 (in fact it works without
the .Hide, the sleeps, and the window Destroy.... the simple .Close is
enough)

Any ideas anyone?
Is it WMPforPPC2003, the Ipaq, the CF runtime.

Having typed all this out, I've had a thought... could it be that the CF
Runtime SP1 has been installed on the PPC2002 nad I need to force an install
of it onto the 2003 device?

I'll be Back

Paul
 
CF SP1 now installed on WMforPPC2003 device but the problem persists.

Further info.

It seems that when (it doesn't happen every time, just most times) I get the
Black (Grey, Red, Blue) Hole in my Today Screen.... that the OS also
believes the app is still running (it still shows under
Settings/Memory/Running Programs but won't activate) This may be an
associated thread that hasn't shutdown (i've coded a 'flag' that the thread
catches and shuts itself down) Again following the code on the debugger it
appears to run through the code correctly on both devices but only works
100% on the PPC2002.

Am I right in thinking that the thread 'inherits' the Window text of the
parent thread and perhaps this is what the OS is still seeing? But then
again the child thread doesn't usually show as a seperate running program so
maybe not.

Also, I thought, again probably wrongly that the PPC version of the OS
didn't allow multiple instances of the same App, but this ghost app still
appears as a 'Running Program' although it won't activate, but also doesn't
prevent me from running a new instance.

I understand nothing aaaarrrgggghhh

Paul
 
I am curious, is there any reason why you are not using Application.Exit to
cloes your app?

Jeremy Hance
NET Compact Framework

This posting is provided "As Is" with no warranties, and confers no rights.
 
Back
Top