User Tag List

Results 1 to 8 of 8

Thread: EDIF bug

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    EDIF bug

    Hey.
    While programming DarkSocket, I came across a bug which means unless DarkSocket is created in every frame in an app, running any a/c/e will fail.
    Attached is an example.
    PS: Don't use this MFX, DarkSocket users! It may have servers, but I haven't debugged those yet!
    edifbug.zip

    EDIF was rather heavily modified by me in an effort to debug this error, but I will provide the source code if needed.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    As with anything else - reproduce the problem in a fresh copy of the original template, send me the source and I'll fix it.

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    I've reinstalled the template and the problem persists; I'll see if a fresh extension continues with the bug.

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Yep, the problem persists with the template object.
    Attached is all the code you need.
    edifisolate.zip

  5. #5
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,609
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Hi Sortacore,

    I tried your application and i got 3 messagebox,

    Conditions Ok!
    Action Not Linked!
    Expressions Not Linked!

    and after press ok in the last one, i get the crash

    Hope its helps!
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    To confirm the bug, copy the mfx to MMF2\Extensions, run MMF2 and load the mfa. Then press Run Application.
    If the bug does not exist, you will receive a "Conditions OK!" message box and nothing else.
    If it does, you will receive "XXX Not Linked!" message box(es) and the program may crash.

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb EDIF bug isolation

    The problem seems to be SDK() is running when the sub-application object loads the application in the 1st frame, and switches to the 2nd frame, without ~SDK() running in-between.
    In chronological order:
    1) Application runs
    2) Object runs SDK()
    3) Object runs Extension() <<< Links a/c/e
    4) Sub-application loads application (1st frame)
    5) Sub-application causes object to run SDK(), but not Extension()
    6) Sub-application switches to 2nd frame. <<< ~SDK() not run
    SDK() is run in

    I modified the extension to log all the function names to a file.

    *****FOR LOADING MFA:
    DllMain(HINSTANCE hDLL, DWORD dwReason (DLL_PROCESS_ATTACH), LPVOID lpReserved)
    Initialize(mv _far *mV, int quiet)
    EDIF::Init(mv _far * mV)
    Edif::SDK::SDK(mv * mV, const char * JSON)
    LoadObject(mv _far *mV, LPCSTR fileName, LPEDATA edPtr, int reserved)
    Edif::Init(mv * _far mV, LPEDATA edPtr)

    *****FOR RUNNING MFA:
    DllMain(HINSTANCE hDLL, DWORD dwReason (DLL_PROCESS_ATTACH), LPVOID lpReserved)
    Initialize(mv _far *mV, int quiet)
    EDIF::Init(mv _far * mV)
    Edif::SDK::SDK(mv * mV, const char * JSON)
    LoadObject(mv _far *mV, LPCSTR fileName, LPEDATA edPtr, int reserved)
    Edif::Init(mv * _far mV, LPEDATA edPtr)
    Extension::Extension(LPRDATA _rdPtr, LPEDATA edPtr, fpcob cobPtr)
    Conditions okay!
    Initialize(mv _far *mV, int quiet)
    EDIF::Init(mv _far * mV)
    Edif::SDK::SDK(mv * mV, const char * JSON)
    Action not linked!
    Expression not linked!
    ***** END OF LOG
    Note that there is no point where a Free(), ~Extension() or ~SDK() is called.

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

Similar Threads

  1. Edif : Extension Development Is Fun
    By Forum User in forum Extension Development
    Replies: 96
    Last Post: 27th December 2013, 09:01 PM
  2. EDIF edittime
    By Phi in forum Extension Development
    Replies: 8
    Last Post: 18th April 2012, 08:51 AM
  3. EDIF Dependencies
    By Phi in forum Extension Development
    Replies: 1
    Last Post: 5th January 2012, 01:25 AM
  4. Interesting EDIF bug
    By Phi in forum Extension Development
    Replies: 0
    Last Post: 10th October 2011, 05:49 PM
  5. MochiLive Update et Edif
    By Naphelia in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 12th March 2011, 06:19 PM

Posting Permissions

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