[C++-sig] std::string crush
Bert Peers
bert.peers at chello.be
Fri May 28 16:08:47 CEST 2004
At 15:59 28/05/2004 +0400, you wrote:
>-Py-----------------------
>import dx8
>for i in range( 40 ):
> dx8.TestStr( "a"*96 )
>
>-C++-----------------------
>void TestStr( std::string s )
>[...]
>The looping in this example is essential. Say, after 4 iteration function
>still work, but 40 iterations kills for shure. If I replace std::string to
>const char*
I have experienced some strange crashes due to
a corrupt heap when using extract<string> (v1.30);
they went away by doing one of :
- a switch to extract<char*>, or
- a switch from VC6 to VC 7.1 (didn't try 7.0), or
- a switch to a statically linked boost_python.lib;
hth,
bert
-=<Short Controlled Bursts>=-
More information about the Cplusplus-sig
mailing list