Boost logo

Boost Users :

Subject: Re: [Boost-users] [Interprocess] assertion while destroying inexistent named instance
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-09-02 03:03:18


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net