User Tag List

Results 1 to 5 of 5

Thread: Beta 10: ForEach crash

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Beta 10: ForEach crash

    Hi

    I get a crash in the foreach code in xcode on the last line of this snippet:


    -(void)actionint)num withActExtensionCActExtension*)act
    {
    switch (num)
    {
    case ACT_STARTFOREACHLOOPFOROBJECT:
    {
    NSString* loopName = [act getParamExpString:rh withNum:0];
    int oi = [act getParamObject:rh withNum:1]->hoOi;


    It worked when I had one ForEach running, it started crashing when I started running two ForEach loops (independently of each other on different objects). Not doing anything complicated, just running two ForEach loops, each loop on a different object and there are more than 10 instances of each object.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I see a possible cause for this:

    MMF2 still triggers the action in the extension even if there are no currently selected objects. It gives a null-pointer in that case which extensions should just check for. The iOS ForEach object port was missing this check and crashed. Fixed for next beta.

    Perhaps you can work around this bug by comparing the number of objects is > 0 before starting the loop (temporary fix until we post the next beta)

  3. #3
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks, will try that out and let you know.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately it still crashes. I will send you my app to examine, maybe I'm doing something specific to trigger it?
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Was my mistake, I still had my fastloop version of the events in place (in a disabled event group) and I had added the work around to that and not to the ForEach event - doh!

    Can confirm this fixes the problem. Andos has fixed the ForEach for the next beta too and we've confirmed this works for my situation
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

Similar Threads

  1. ForEach causing a crash
    By DTownTony in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 5th October 2013, 04:34 PM
  2. [CRASH] ForEach loop with Groups/Qualifiers (256.31)
    By MJK in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 13th March 2013, 04:42 PM
  3. Crash with ForEach
    By DTownTony in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 20th March 2012, 05:09 PM
  4. Beta 19~22 - ForEach Object crashes APP
    By Ls2 in forum Android Export Module Version 2.0
    Replies: 20
    Last Post: 12th March 2012, 02:57 PM
  5. [CRASH] ForEach object crash on recursive loop
    By LB in forum Extension Development
    Replies: 0
    Last Post: 1st May 2011, 01:23 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
  •