User Tag List

Results 1 to 3 of 3

Thread: exec_bad_access

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export Module
    colej_uk's Avatar
    Join Date
    Nov 2006
    Location
    UK
    Posts
    739
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    exec_bad_access

    Recently I've been trying to get to the bottom of the freezing bug in Planet Wars.

    I'm suspecting it's something to do with the movesafely object, as it seems to happen the most with the shotgun, which uses 5x movesafely objects to simulate the shotgun spray.

    Removing a courrupt active object seems to of helped somewhat (thanks Francois). Before, when it froze, xcode didn't throw up any error messages and it tended to do this a few minutes into the action-heavy level I am using to test.

    Now it lasts a bit longer. It still freezes, but xcode is displaying an error this time:
    http://i.imgur.com/stDxp.png

    Fixable?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Question : do you think you destroy the object used by movedsafely somewhere in your game?

  3. #3
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export Module
    colej_uk's Avatar
    Join Date
    Nov 2006
    Location
    UK
    Posts
    739
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No, it doesn't get destroyed, but I think I've solved this problem (and the freezing in planet wars).

    I hadn't used the movesafely object before this project, and I didn't take note of the 'release all objects' event. It might of been something to do with me adding the bullets to the movesafely each time they were created (I assumed you had to do this for each instance of the object)... Leading the 'protected objects' to pile up throughout the length of a game, and perhaps overloading something eventually and casuing the freeze.

    Either way, a simple event 'releasing all objects' when there are no bullets seems to have fixed my problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •