[C++-sig] string being deleted causes crash
andrew
acorriga at cs.stevens-tech.edu
Sat Apr 24 01:47:42 CEST 2004
My strings are unicode, and I isolate the problem to the following:
The error only occurs if the string is greater in length than 7
If they are less than or equal to 7 in length than it is fine.
Andrew
andrew wrote:
> I'm using boost python 1.31.0, python 2.2/2.3 (both had the same
> problem), and msvc7 to wrap up my library. I'm in Windows XP
>
> I have many functions that takes a std::wstring, sometimes in random
> different places the program crashes.
>
> If I run it with MSVC's debugger, I find that the passed string is
> attempting to be deleted.
>
> I have found that my problem is the same as described here:
> http://mail.python.org/pipermail/c++-sig/2003-June/004220.html
>
> However I tried both of the suggested fixes in that thread (make sure
> compiling in debug mode if using debug bpl lib/release if using
> release bpl lib, and using bjam) All of these resulted in the same
> problem, just on different calls.
>
> Anyone know what to do?
>
> Andrew
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
More information about the Cplusplus-sig
mailing list