UserCallback failing

UserCallback failing

mischa_spelt
Advisor Advisor
25 Views
1 Reply
Message 1 of 2

UserCallback failing

mischa_spelt
Advisor
Advisor

[ FlexSim 17.1.2 ]

Occasionally I get the following error:

exception: treewin__CallUserCallback
ex: CallUserCallback

I suspect it is coming from calling a nodefunction or evaluating a treenode in a module, but I cannot reproduce it reliably. Usually exceptions give a bit more information but this is really all I get.

Any idea how I could get more information about what specifically is causing the issue, or how to narrow it down? Am I even right about the cause?

0 Likes
Accepted solutions (1)
26 Views
1 Reply
Reply (1)
Message 2 of 2

philboboADSK
Autodesk
Autodesk
Accepted solution

That is caused by a custom Windows message (FLEXSIM_MESSAGE_USER_CALLBACK) that calls a generic callback function. It could be called from any number of places, including a FlexScript call to sendwindowmessage() or postwindowmessage() or a C++ call to those functions, SendMessage(), or PostMessage(). The software itself uses that custom message in many different places.

Either the callback itself threw an exception and was caught by the callback handler, or the message was passed incorrectly and the handler threw an exception. Either way, it is a generic function that doesn't have any more information to share within the exception message.

To figure out why it is happening, we need to have replication steps so that we can debug where the message is coming from. At the point it is executed, that information is long gone.



Phil BoBo
Sr. Manager, Software Development
0 Likes