question

Sara R4 avatar image
0 Likes"
Sara R4 asked Ryan Clark commented

Exception Caught in Custom Code Portion of Object Travel Sequence

Hi,

I am receiving an exception when using a set of activities to move an object from one queue (where it was created) to another queue. The error is this:

"exception: Exception Caught in contextdragconnection(treenode fromobject, treenode toobject, char keypressed)

exception: Exception Caught in ObjectFunction72__project_exec_commandlist_contextdragconnection_node object: MAIN:/project/exec/commandlist/contextdragconnection/node i: MAIN:/project/exec/commandlist/contextdragconnection/node class: MAIN:/project/exec/commandlist/contextdragconnection/node

exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MAIN:/project/exec/commandlist/contextdragconnection/node c: MAIN:/project/exec/commandlist/contextdragconnection/node i: MAIN:/project/exec/commandlist/contextdragconnection/node thisClass: MAIN:/project/exec/commandlist/contextdragconnection/node

exception: Exception caught in evaluation of MAIN:/project/exec/commandlist/contextdragconnection/node"

The set of activities is similar to the attached model provided by @Felix Möhlmann in response to another question on the forum (I cannot provide my model for confidentiality reasons). The exception is happening in the custom code activity that connects the object to a network node.

Also, I must note that activities still work, regardless of the exception (as far as I can tell).

Also, in my model, I use the set of activities twice. The first set of activities moves the object from the queue where it is created to another queue and the second set of activities moves the object back. The exception only occurs when I move the object back to its original queue (the second set of activities).

I would like to resolve the exception so that I can be sure that it isn't impacting my model functionality in any way.

Thanks.

processflowitemtravel.fsm

https://answers.flexsim.com/questions/110866/control-flowitem-movement-using-processflow.html


FlexSim 21.1.4
moveobjects
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Benjamin W2 avatar image Benjamin W2 commented ·

Hi @Sara R4 ,


When did this error occur? I just ran your model and I'm not getting any errors, but the model did crawl to a stop after around 1000 flow items.


Can I ask what you are trying to do? It looks like your model might be better suited for the healthcare module instead of standard FlexSim. Here is a quick tutorial that might help you decide: FlexSim Healthcare Tutorial

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann commented ·
You should only have to connect the object to the travel network once. Trying to do so a second time might be the cause of the error. You should be able to simply delete the custom code for the second travel operation.
0 Likes 0 ·
Ryan Clark avatar image Ryan Clark commented ·

Hi @Sara R4,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.