Hi all, I'm now trying to make my own function object (link to the repo).
Ideally I want to get return values directly from an expression, so I need to call an event via expression.
Call back function
Code:
callRunTimeFunction(rdPtr, RFUNCTION_GENERATEEVENT, X, 0)
in an expression routine can call the event properly, but soon I encountered some issues:
Application will crash if the last child of "On Func" event has only an single action that refers another object:

...but if you add anything else to it, app will run properly:

...or make sure last child has an action of object which triggers this immediate condition:

or just simply don't use child event:

Application still crashed even if I comment all lines of code that do the work in Visual Studio (expection (access violation) is throwed by fusion runtime, out of my code range) but works properly with normal events. So I think this might be a bug about child event.
Application crashed when nest object's expression that will call an event
I also made a ternary expression. if I want to nest it with expression function calls, application will crash:

when I step-in in VS, app crashes when I trying to get the second param (access violation):

and
Code:
CNC_GetNextExpressionParameter(rdPtr, param1, TYPE_FLOAT)
is a callback of fusion, so I think this case may also a bug of fusion expression routine.
Here follows the mfa that contains the issue:
FuncIssue.mfa
Please uncomment each case to check the issue.
You can download the .mfx and help file here:
https://github.com/defisym/OpenFusio...oInstall/Files
Thanks in advance.