This site is no longer active and is available for archival purposes only. Registration and login is disabled.

szWindowName doesn't actually correctly set the window name?


Postby fast_rx » Sep 20, 2004 @ 3:49am

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 20, 2004 @ 4:32am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Sep 20, 2004 @ 4:10pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 20, 2004 @ 4:56pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Kzinti » Sep 21, 2004 @ 5:34am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Sep 21, 2004 @ 7:16pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 21, 2004 @ 7:27pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Sep 21, 2004 @ 7:41pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 21, 2004 @ 9:31pm

No wonder I couldnt reproduce it, I was always putting my breakpoints in Game::OnSuspend().

Oh well. So now you have your fix =)
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Sep 26, 2004 @ 4:49pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 26, 2004 @ 6:11pm

You don't want to do a FindWindow() with a window name, because this can indeed hang your app. This is exactly what you are getting.

I don't remember the details, but I think FindWindow() has to ask the existing window for its name by sending a WM_GETTEXT or something like that. This request can hang or stall for a long time.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Sep 26, 2004 @ 6:49pm

That makes sense that another app may not be responding to the WM_GETTEXT request.

But, I don't see where PF is setting a class name, so what should you do to make it work?

And lastly, I was not using the mutex to determine when I should even be looking for the existing window. I suppose that is a safer way to do things, so that is added now. That will probably eliminate 99/100th of the problems.
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 26, 2004 @ 6:55pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Sep 26, 2004 @ 7:29pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Previous

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron