<div dir="ltr">Apart from assinging a string<br>passing a "longer" string to a function does not work either.<br><br>example:<br><br>void createNavi(std::string naviname,std::string url,RelativePosition pos,int sizeX,int sizeY);<br>
<br>class_<NaviManagerWrapper,boost::noncopyable>("PyNaviManager")<br> .def("createNavi", &NaviManagerWrapper::createNavi) ;<br><br><br>in python fail line:<br><br>pyNaviManager.createNavi("activation","local://activation.html",Center,800,400)<br>
<br><br>I think the second parameter "local://activation.html" can not be converted to std::string.<br><br><br>Regards,<br> <br><br><br><div class="gmail_quote">On Fri, Oct 17, 2008 at 5:46 PM, Furkan Kuru <span dir="ltr"><<a href="mailto:furkankuru@gmail.com">furkankuru@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><div class="Ih2E3d"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes, that seems very likely; this looks a bit like the small string<br>
optimization gone awry. Perhaps you have mixed the MS runtime lib<br>
headers with a different version of the binary library.<br>
<br></blockquote></div><br><br></div>Is there any way to remove this string optimization. Or How can I trace and find these mixed headers to fix the problem?<br><br><br>-- <br>Furkan Kuru<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Furkan Kuru<br>
</div>