on Fri Oct 17 2008, "Furkan Kuru" wrote:
> Yes, that seems very likely; this looks a bit like the small string
> optimization gone awry. Perhaps you have mixed the MS runtime lib
> headers with a different version of the binary library.
>
> Is there any way to remove this string opt
2008/10/17 Adrien Saladin <[EMAIL PROTECTED]>
> Hi,
>
> I would like to give pybindgen a try on a C++ library. I'm currently
> using Py++ (which is great) to automatically generate the correct
> interface.
> Before seriously playing with pybindgen, I need to know if it is
> possible to do a fine s
I saw a problem vary similar to this when I was accidently mixing debug
and non-debug libraries in the same pyd. It seems that the debug version
of MS's std::string has an some kind of extra debug flag in it. If you
mix them you get corruption and other weird behavior.
-Original Message-
On Fri, Oct 17, 2008 at 5:53 PM, Stefan Seefeld <[EMAIL PROTECTED]>wrote:
> Furkan Kuru wrote:
>
>> Apart from assinging a string
>> passing a "longer" string to a function does not work either.
>>
>>
> "does not work" isn't an acceptable failure description. Please be
> specific.
>
As in the ca
Furkan Kuru wrote:
Apart from assinging a string
passing a "longer" string to a function does not work either.
"does not work" isn't an acceptable failure description. Please be specific.
I think the second parameter "local://activation.html" can not be
converted to std::string.
What makes y
> Yes, that seems very likely; this looks a bit like the small string
> optimization gone awry. Perhaps you have mixed the MS runtime lib
> headers with a different version of the binary library.
>
>
Is there any way to remove this string optimization. Or How can I trace and
find these mixed head
Apart from assinging a string
passing a "longer" string to a function does not work either.
example:
void createNavi(std::string naviname,std::string url,RelativePosition
pos,int sizeX,int sizeY);
class_("PyNaviManager")
.def("createNavi", &NaviManagerWrapper::createNavi) ;
in python f
on Fri Oct 17 2008, Stefan Seefeld wrote:
> Furkan Kuru wrote:
>> By the way
>>
>> I tried
>> "resize"ing and "reserve"ing of strings
>> by
>>
>> name.resize(1024);
>> or
>> name.reserve(1024);
>>
>> but it did not fix the problem.
>>
>> It seems that it allows up to 15 chars + null character to
Hi,
I would like to give pybindgen a try on a C++ library. I'm currently
using Py++ (which is great) to automatically generate the correct
interface.
Before seriously playing with pybindgen, I need to know if it is
possible to do a fine selection of which classes and methods has to be
exposed to p
Furkan Kuru wrote:
Do different configured PCs have different memory allocation routines?
Because a friend of mine tested the application on a different
computer running same os (vista) without anyproblems.
I have no idea what you mean by 'differently configured PCs', but I'd
suggest you t
Definitely, but
On Fri, Oct 17, 2008 at 4:43 PM, Stefan Seefeld <[EMAIL PROTECTED]>wrote:
> Furkan Kuru wrote:
>
>> b)
>> I am using Visual Studio 2005 and Windows Xp as development environment.
>>
>> I do not know too much about configuration details.
>>
>
> You should. Did you compile boost yo
Furkan Kuru wrote:
b)
I am using Visual Studio 2005 and Windows Xp as development environment.
I do not know too much about configuration details.
You should. Did you compile boost yourself or did you obtain a binary
package from somewhere else ? As I said, you have to make sure boost
(nota
b)
I am using Visual Studio 2005 and Windows Xp as development environment.
I do not know too much about configuration details.
If you can specify any related configuration parameter I can write the
setting value.
Thanks for your help.
Regards,
On Fri, Oct 17, 2008 at 4:13 PM, Stefan Seefeld <[
Furkan Kuru wrote:
By the way
I tried
"resize"ing and "reserve"ing of strings
by
name.resize(1024);
or
name.reserve(1024);
but it did not fix the problem.
It seems that it allows up to 15 chars + null character total 16chars.
I think strings set longer than 15 chars corrupts the stack.
I re
By the way
I tried
"resize"ing and "reserve"ing of strings
by
name.resize(1024);
or
name.reserve(1024);
but it did not fix the problem.
It seems that it allows up to 15 chars + null character total 16chars.
I think strings set longer than 15 chars corrupts the stack.
Any help is appreciated.
Ok,
class DataPack {
public:
std::string name;
};
BOOST_PYTHON_MODULE( Data)
{
class_("DataPack ")
.def_readwrite("name", &DataPack ::name);
}
in my py file:
d = Data.DataPack()
d.name = "123456789101234567891012345678910"
It works fine in xp but breaks applica
Furkan Kuru wrote:
Hello,
I have exported a struct containing a std::string field and used it
one of my py files.
I used same py and pyd file in another operating system (vista).
It just stuck without giving any errors.
I figured out that the std::string field gets a limited space (as it
shou
Hello,
I have exported a struct containing a std::string field and used it one of
my py files.
I used same py and pyd file in another operating system (vista).
It just stuck without giving any errors.
I figured out that the std::string field gets a limited space (as it should
do)
but does not incr
18 matches
Mail list logo