PocketMatrix forums

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

notification message issue

An issue that i´m having here and most pocket frog games may suffer too is the crash when the system shows some notification message, or when some window pops up in front of the game window
Does anyone knows how to remedy this?
maybe a check on the foreground window on the start of each loop to see if the game is the top window otherwise return; ?

If you want to test this just run any pocket frog file and then put your device on the cradle, the connection pop up that appears will crash it

Any ideas about fixing this?

HTK
Friggin Joe · 17 Jan 2003, 10:26 UTC
You're maintaining a killfocus() event?
You´re asking If am I using a Kill Focus for something on my game?
no
Anyone have any idea how to fix this?
I'm not experiencing this problem. But then again, I'm not using either GAPI or full-screen mode. My device doesn't have GAPI support so I'm stuck with GDI. I've written my own PFWindow class so that I can launch a PF window (to handle graphics) from within a GUI window. And I have no problem what so ever with system pop-ups (other than that it is very anoying to dispose of these pop-ups)

So in short, no I don't have a clue. But it sounds like something Kzinti would have fixed a long time ago if it really is a problem. Are you shure it's not your device or your program that's causing the problem. Do you get the same error running the Blit sample for instance. And has anyone else experienced the same problem?

It sounds almost like PF doesn't regain focus after you've disposed of the pop-up window. Have you tried selecting PF after disposing pop-up window. And define crash? Does it freeze/hang, does it crash/shuts down or does it hang the entire pda?

There.. that'll keep you busy for a few minutes =)
Yeah, all the Pocket Frog samples suffer from this too, and it´s not only on my device, as I said before a friend of mine is getting this crash on his O2 device when the system checks for signal and a window popsup
I have a Cassiopeia Em-500, so it´s different OS from the O2, and different processor
as you can see, it´s a problem that many people will have, but only with further using of their games that they´ll notice, when some alarm pops up in front of the game, or anything else pops in front of the game them bam, the game crashs instantly
And the crash is instantly when the another window pop´s up, the user don´t have time to select nothing.. the window game or anything.. only the OK button from the Fatal Application Error
"Application Blit.exe has performed an illegal operation and will be shut down.. blablabla"

Then you click ok and the game closes but the system keeps working fine..

:cry:
If you do:

MessageBox(NULL, L"Test", L"", MB_OK);

Does your game exhibit the fault you are speaking of?

I am asking because I do this in my games during development to check values, and I've never had a problem clicking OK and having the game continue. If you do this and the game "crashes" as you've described, I'd have to say it's not a PF fault.

Or is it just certain other types of popups, like appointment alerts for instance? This type of popup kills a great many games, PF-based or not.
I don´t get the error with the messagebox
I think its only alerts and stuff like that
even tho, anyone have any idea on how to avoid this?
I tested here monopoly and snails and no crashs with the usb message (putting the device on the cradle.. ).
Any idea on how to avoid this?