Force only one data variable

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hey ext dev folks,
    I'm looking for a way in Windows EDIF SDK to store data globally to the application. This means regardless of the number of objects in the frame, the number of sub-apps and their objects, there's always only one data variable.
    This is due to the object relying on an OS call that is only valid to use once. So when there are 0 objects (i.e. end of frame) the data variable is to be deallocated; when 1, allocated; when 2 or more, nothing happens.

    Some information on allowing an object to be global in the properties would be good too.

    Cheers

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • You can use the existing ReadGlobal and WriteGlobal functions, they even go up from sub-apps to the parent app like you ask. You can reference count within the global data you store ;)

    Working as fast as I can on Fusion 3

  • I thought that would be the case LB, but ReadGlobal and WriteGlobal aren't sharing the data.
    I think there was a bugfix about that which I'd better check is implemented...

    EDIT: Yep, it is, but for some reason rhPtr->App-> ParentApp is not null for the top-level rhPtr, leading to access errors.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

    Edited once, last by Phi (June 30, 2013 at 6:48 PM).

  • Fixed the issue, which was a missing * in one of the MMF2 headers, leading to 16 bytes' worth of misalignment.
    LB, any idea about making the object global in the properties?

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!