<div dir="ltr">Apart from assinging a string<br>passing a &quot;longer&quot; 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_&lt;NaviManagerWrapper,boost::noncopyable&gt;(&quot;PyNaviManager&quot;)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; .def(&quot;createNavi&quot;, &amp;NaviManagerWrapper::createNavi) ;<br><br><br>in python fail line:<br><br>pyNaviManager.createNavi(&quot;activation&quot;,&quot;local://activation.html&quot;,Center,800,400)<br>
<br><br>I think the second parameter &quot;local://activation.html&quot; can not be converted to std::string.<br><br><br>Regards,<br>&nbsp;<br><br><br><div class="gmail_quote">On Fri, Oct 17, 2008 at 5:46 PM, Furkan Kuru <span dir="ltr">&lt;<a href="mailto:furkankuru@gmail.com">furkankuru@gmail.com</a>&gt;</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. &nbsp;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>