User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: LUA+: Crash with Thread use.

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA+: Crash with Thread use.

    Hi,

    I'm trying to create a small application which uses the "WHILE" or "FOR" in a new thread to let MMF2 runs and refreshes the frame... but I got a crash.

    If I'm doing something wrong, maybe somebody can help me?

    If you can have a look at it Jamie, that could be nice. Thanks.
    Attached files Attached files

  2. #2
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    Sorry but.. nobody has any idea?

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    I don't think MMF2 allows multi-threading or whatever

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    The extension LUA+ can do that... but it crashes in my example. That's the problem i'm trying to resolve...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    I've never got the multi-threading to work in Lua+, you might ask Jam for help on this one

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    I'll take a look later tonight.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    Great!
    Thanks a lot

  8. #8
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    Any news about it ? :crazy:


  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    I would be tempted to just say avoid using threading in Lua+. It is not the most stable feature, and there are problems with calling MMF functions from Lua (MMF could be doing anything when you call it from another thread, like redrawing the frame). The only thing I could do would be to hold the execution of the script until MMF's event loop so the function can be called, but that would mean there would be no point in using threads in the first place. You can only communicate with a thread via variables.

  10. #10
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LUA+: Crash with Thread use.

    Lua is a programming code like Basic, C#, C++, J# or jamagic, of course it's going to crash if you don't know how to use it properly and it takes many years to learn how to use it properly.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [CRASH] Google Play Crash Report: java.lang.NullPointerException
    By tom79 in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 1st August 2013, 04:08 AM
  2. Replies: 0
    Last Post: 29th April 2013, 08:25 PM
  3. [CRASH] Memory Object Runtime Crash with Allocate(
    By LB in forum Extension Development
    Replies: 8
    Last Post: 4th September 2011, 09:04 AM
  4. [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
  •