[Interprocess] assertion while destroying inexistent named instance

Hi, During my tests I found that if I change the managed shared memory index from the default iset_index to map_index the test fails when a process tries to destroy an already inexistent named instance, using its name. With map_index, an assertion fails when the object is found not to be present. Shouldn't it behave like in the case of iset_index ? Thank you. Rui

Rui Pedro Fernandes escribió:
Hi,
During my tests I found that if I change the managed shared memory index from the default iset_index to map_index the test fails when a process tries to destroy an already inexistent named instance, using its name. With map_index, an assertion fails when the object is found not to be present. Shouldn't it behave like in the case of iset_index ?
Yes, you are right, the documentation says: //!Destroys the named object with //!the given name. Returns false if that object can't be found. template <class T> bool destroy(const CharType *name) so it shouldn't assert. I'll fix it ASAP. Thanks, Ion
participants (2)
-
Ion Gaztañaga
-
Rui Pedro Fernandes