question

Patrick Zweekhorst avatar image
1 Like"
Patrick Zweekhorst asked Kavika F answered

Destroy object object field executed twice

Hi,

When you destroy an object in PF with the destroy object activity the object field is executed twice.
In the attached model you can see this. There is a break point that fires twice, and the print also fires twice. Unchecking the asynchronous box does not change the outcome.

Having this would maybe in most models not lead to any problems. But it can give problems if you are using a distribution in the object field, or something like token.arraylabel.shift().

DestroyObject.fsm


Thanks,

Patrick

FlexSim 24.0.2
destroy object
destroyobject.fsm (33.8 KiB)
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

·
Kavika F avatar image
0 Likes"
Kavika F answered

Hey @Patrick Zweekhorst, this seems like a bug. I've reported it to the dev team. Thank you for pointing this out to us!

5 |100000

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

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.