User Tag List

Results 1 to 9 of 9

Thread: iOS ini/array Issue

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    May 2011
    Location
    Pennsylvania, USA
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iOS ini/array Issue

    Hi, I'm currently having a runtime issue with XCode. I get the error code "EXC_BAD_ACCESS" when running my program in XCode. This error didn't pop up until I added the loading of an array file in my program "settings.arr" to load in some default settings for various objects. I added this file to the project solution in XCode and then I got that error during the "clean" routine in KcArrayData Clean, so I know it's because of this process. I looked up the error in google and came across information saying either that a pointer is corrupt or premature memory deallocation occurred. In either case, I don't know ObjC, so finding the root of the problem will be pretty difficult. Has anyone successfully loaded ini/array files successfully in an application for the iPhone/iPad? If so, what steps should I take?

  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)

    Re: iOS ini/array Issue

    Can you send me the application, and the .arr file?

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: iOS ini/array Issue

    Do you need to drag the file into XCode or does it create it?

    Premature deallocation means that either a [release] or a [dealloc] happened, effectively clearing a variable or object from the memory, but the code still needs it.

    Have you tried removing the array file and running it? That could confirm that it's definitely the array.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    May 2011
    Location
    Pennsylvania, USA
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: iOS ini/array Issue

    I guess I just don't know where to place the file in the XCode project, because when I remove the reference to the file, I still get the error. Please note, I have two different builds of this application in XCode. The old build references the array to a direct path on my harddrive (which doesn't exist on my mac). That build doesn't get the error. When I changed it to reference a relative path (just used "settings.arr") and send that build over, that's when I get the error. Otherwise, there was no other change in the two builds. So, I think it perhaps has to do with where I'm placing the file? I'm not sure. If there were an example out there, I could feel more confident in the process I should be using. Since, this is probably just an issue with the procedure I'm using and not the application.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    May 2011
    Location
    Pennsylvania, USA
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: iOS ini/array Issue

    Francois, just in case you missed the message, I sent you a link that you can use to download the project file & array file. I'm hoping not to have to hard-code these values until the game is ready for release, so that tweaking object attributes does not require an entire rebuild of the app.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    May 2011
    Location
    Pennsylvania, USA
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a bump on this issue... has the array referencing issue been resolved in the latest mmf2 build? Has anyone successfully incorporated loading arrays from files in their builds?

  7. #7
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Did you use the array to store strings? If so, then yes Francois has fixed a bug that caused a crash during load time of the array

    This is in the beta version we will be releasing soon.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    May 2011
    Location
    Pennsylvania, USA
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep, the array being loaded stored mixed data; string and ints. So that is good news, hopefully it will be the fix I need! Thanks

  9. #9
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    If you add your iOS serial number to your forum account
    (Click the settings at the top of the forum)

    You will unlock access to the iOS beta forum.
    In there you can get early access to upcoming versions of the iOS export module and can make sure it works as you need it to.

Similar Threads

  1. Counter updating issue or code issue?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th March 2013, 01:48 PM
  2. Dynamic Array - Sort 2 dimension array by Column 1
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th December 2012, 04:54 AM
  3. Dynamic Array to Binary Array problems
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd March 2010, 10:48 PM
  4. Issue with my array
    By mobichan in forum File Archive
    Replies: 7
    Last Post: 26th February 2009, 07:11 PM
  5. Array Recording Issue
    By LB in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 11th June 2007, 01:17 AM

Posting Permissions

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