question

Enrique Elizaga avatar image
0 Likes"
Enrique Elizaga asked Enrique Elizaga commented

using destroy or moveobject commands will leave events that will cause problems?

Hi. In a model I am using taskexecuters as flowitems, moving them from queue to queue. Sometimes I get rid of them using moveobject to a sink. My model crashes eventually. What are best practices for using these two commands without causing trouble with use transport or send to port or any leftover events for this items that are removed from a fixed resource?

FlexSim 18.2.3
moveobjectdestroy
· 1
5 |100000

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

Enrique Elizaga avatar image Enrique Elizaga commented ·

This is the error message i get:

time: 100.104376 exception: Exception Caught in Navigator::onTimerEvent(treenode involved, int code, char *strdata) object: /DefaultNavigator
time: 100.104376 exception: Exception Caught in ObjectFunction248__project_library_FlexSimObject_behaviour_eventfunctions_OnTimerEvent object: /DefaultNavigator i: /DefaultNavigator>variables/activetravelmembers/1 class: /DefaultNavigator


time: 100.104376 exception: Exception caught in TreeNode::receivemessage()
time: 100.104376 exception: Exception caught in Executive::processeventinlist(). Throwing.
time: 100.104376 exception: Exception caught in Executive::steptotime(). Throwing.
time: 100.104376 exception: Exception caught in Executive::tick(). Throwing.
time: 100.104376 exception: int runthemessageloop() #4
exception: Executive::instance.tick();
time: 100.104376 exception: int runthemessageloop() #6

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Enrique Elizaga commented

Use destroyeventsofobject() to clean up events involving that item before you destroy it.

· 1
5 |100000

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

Enrique Elizaga avatar image Enrique Elizaga commented ·

@phil.bobo Yes man! that's the wisdom I can use!

0 Likes 0 ·