Hello. I have developed a 9-ball game which works fine G3, G4 and Intel Macs, however on G5 Macs the game freezes without explanation (to me).
I am building the executable in a MacBookPro (Intel) and the RunRev version is 2.7.2. I will appreciate any guidance on how to solve this problem. Thanks.
Problems on G5 processor based Macs
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi Andreas,
I can't think off the top of my head what the problem might be.
Is there anything in particular that triggers the freeze or does it appear to be random? Does the problem happen in the IDE or only in standalone mode?
If there is some way to reproduce the problem then I would suggest trying to isolate it by creating a copy of your program and removing objects / commenting out code until you can find the exact place where the freeze is caused.
If this doesn't succeed, you can find the cause of the freeze using logging messages to a file. Ie insert a handler "on log pMessage" into your main stack or library start using it to log where the scrpit is getting to. If you have any suspicions about what might be the cause, start around here, then perhaps at the beginning and end of handlers etc.
Let me know how you get on.
Regards
Oliver
I can't think off the top of my head what the problem might be.
Is there anything in particular that triggers the freeze or does it appear to be random? Does the problem happen in the IDE or only in standalone mode?
If there is some way to reproduce the problem then I would suggest trying to isolate it by creating a copy of your program and removing objects / commenting out code until you can find the exact place where the freeze is caused.
If this doesn't succeed, you can find the cause of the freeze using logging messages to a file. Ie insert a handler "on log pMessage" into your main stack or library start using it to log where the scrpit is getting to. If you have any suspicions about what might be the cause, start around here, then perhaps at the beginning and end of handlers etc.
Let me know how you get on.
Regards
Oliver
Oliver Kenyon
Software Developer
Runtime Revolution
Software Developer
Runtime Revolution
-
- Livecode Opensource Backer
Hi Andres,andres wrote:But I am interested in knowing how can I implement a logging mechanism like the one you propose. Can you please give me a few lines of code I can use?
Something I discovered only very recently is "the params" or params(). If you put this in any handler or function, it returns the name of the handler or function that this command is within along with all parameter values that were sent to this handler or function.
Code: Select all
on somehandler param1, param2, param3
put params() & cr after URL ("file:" & "log.txt")
... processing ...
end somehandler
Something else to check in the dictionary is "pendingmessages", which "Returns a list of messages that have been scheduled with the send command, but not yet delivered."
Hopefully, Oliver will chime in again as I believe he knows a lot more on this topic than I do.