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.

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.