Boost logo

Boost Users :

Subject: [Boost-users] boost::thread liker error in Release mode
From: herzl&revital sham (herzlrevital_at_[hidden])
Date: 2011-12-18 10:46:17


I am write a program that use boost::thread like below

  class RPCClientManagment
        {

        boost::thread *pThread_;

void RunSendRequestStatus()
{
boost::posix_time::seconds interval(30);
while (bRunSendRequestStatus_)
{
SendRequestStatus();
boost::this_thread::sleep(interval);
}

}

void StartRequestStatus()
{
 bRunSendRequestStatus_ = true;
pThread_ = new boost::thread(&RPCClientManagment::RunSendRequestStatus,
this);
}
        };

when I compile it in rlease mode I receive bleow error:

    1>c:\program files
(x86)\boost\boost_1_44\boost\asio\placeholders.hpp(91) : fatal error C1001:
`An internal error has occurred in the compiler.`
    1>(compiler file
'f:\dd\vctools\compiler\utc\src\p2\main.c[0x62542D7F:0x00000028]', line 182)

    1> To work around this problem, try simplifying or changing the program
near the locations listed above.
    1>Please choose the Technical Support command on the Visual C++
    1> Help menu, or open the Technical Support help file for more
information
    1>LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage
    1> Version 9.00.21022.08
    1> E

when I comment this row error message hide

       //pThread_ = new
boost::thread(&RPCClientManagment::RunSendRequestStatus, this);

in debug mode I don't see this problem at all.

I use vc++ 9



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