Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684

    Multi-threading with AutoPlay Media Studio?

    I've tried to put HTTP.Download into a coroutine, run it and then attempt to click another button opening a Dialog.Message.

    Unfortunately, this didn't work and I had to wait for the download to finish before my Dialog came up.

    Has anyone else tried any multithreading with AutoPlay Media Studio? I've only tried HTTP.Download, but maybe some others will work.

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    when i need background work done in AMS i always resort to PB, wrap the function in a thread, return the thread id back to AMS and send callback messages back to AMS via the memory plugin, when the thread has finished i make AMS clean up, the only restriction is a single argument can be passed to a thread, but thats overcome by sending a pointer to a structure containing the arguments

    its tricky, but powerful and worth the headache it causes, when i find time i'll turn some of this stuff into plugins
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    coroutines in LUA are not automatic, you need to manually start/pause/stop or complete them. IOW -- YOU are in charge of the time slicing between the main app and your co-routine.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    i did mess with coroutines once, had the same luck as Sakuya, if anyone has a working example it would help quite a lot of people
    Open your eyes to Narcissism, Don't let her destroy your life!!

Posting Permissions

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