Boost logo

Boost :

From: joel.vennin_at_[hidden]
Date: 2007-06-20 11:12:56


Of course ... sorry ;)

-----Message d'origine-----
De : boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] De la part de Ion Gaztañaga
Envoyé : mercredi 20 juin 2007 17:13
À : boost_at_[hidden]
Objet : Re: [boost] Boost.Interprocess file_mapping strange error.

Hi,

joel.vennin_at_[hidden] wrote:
> Hi !
>
>
>
> I use the Interprocess library version 2006-10-13.

I recommend you downloading the latest code from CVS so that you can get
bug-fixes.

> [example]
> So when I debug this code: the debugger enter to the file_mapping
> constructor, next evaluate the following line:
>
>
>
> //Check accesses
>
> if (mode != read_write || mode != read_only){
>
> error_info err = other_error;
>
> throw interprocess_exception(err);
>
> }
> And it throws the error. So I really don't understand why it does it.

Because the line is not correct. It should be:

mode != read_write && mode != read_only

This is already fixed in the CVS code,

Ion
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
Societe Generale Asset Management et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
  
Decouvrez l'offre et les services de Societe Generale Asset Management sur le site www.sgam.fr
  
                                ********
  
This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither Societe Generale Asset Management nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
 
Find out more about Societe Generale Asset Management's proposal on www.sgam.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk