Re: [Boost-bugs] [Boost C++ Libraries] #4010: Boost message queue bug

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4010: Boost message queue bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-17 20:09:17


#4010: Boost message queue bug
-------------------------------------------------+--------------------------
  Reporter: rusty0831 <rusty_lai@…> | Owner: igaztanaga
      Type: Bugs | Status: closed
 Milestone: Boost-1.45.0 | Component: interprocess
   Version: Boost 1.42.0 | Severity: Problem
Resolution: fixed | Keywords: bug message queue temp folder bootstamp
-------------------------------------------------+--------------------------

Comment (by andysem):

 I took a look at the WMI code and noticed that in a few places you pass
 wide strings to COM methods. Strictly speaking, this is not correct
 because COM methods accept BSTRs, which are binary incompatible with wide
 C strings, unless the method implementation treats them as wide C strings.
 In particular, if it calls SysStringLen on the argument, the result will
 be undefined.

 FWIW, from [http://article.gmane.org/gmane.comp.lib.boost.devel/208308
 this thread] it seems that using WMI has its drawbacks, let alone the
 complexity. Perhaps, using performance counters would suffice?
 [http://www.osronline.com/showThread.cfm?link=10513 Here] I found an
 example of reading a few system counters, of which
 "\Process(System)\Elapsed Time" might be what you need. I did not dig deep
 into the code enough though, so this may be of little help to you.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4010#comment:10>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC