Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

I'm using a CacheModel for my actor model.

I'm displaying (DBGPRINTF) the number of child nodes that exist everytime CreateChild is called... Once at the beginning of the function and once at the end of the function.

The first time the function is called zero children exist at the beginning of the call and one child exists at the end of the call, as is expected.

Consequently, the second time the function is called two children exist at the beginning of the call. This is unexpected because the actor previously contained one node at the end of the previous CreateChild call.

Presumably something is going on behind the scenes, but I am unaware of what.

Can anyone provide any insight?

Thanks.

Can you tell me how do u get the number of childs.. i guess something wrong is happening there!!!!

Can you tell me how do u get the number of childs.. i guess something wrong is happening there!!!!