Re: [C++-sig] vc++ assertion error upon runtime

2010-03-18 Thread Jim Bosch
On Fri, 2010-03-19 at 14:45 +0800, hitesh dhiman wrote: > Hi all, > I'm trying to gain access to functions that use pointers as > arguments. I have written the wrapper file that converts the arguments > into pointers. The compilation works successfully, but when i try to > run the code from python

[C++-sig] vc++ assertion error upon runtime

2010-03-18 Thread hitesh dhiman
Hi all, I'm trying to gain access to functions that use pointers as arguments. I have written the wrapper file that converts the arguments into pointers. The compilation works successfully, but when i try to run the code from python, it gives an assertion error: Debug Assertion Failed! Expression:

Re: [C++-sig] Fwd: passing pointers from python

2010-03-18 Thread hitesh dhiman
Hi Jim Thanks...thats what i'm trying to do right now. Will post if any problems occur. On Fri, Mar 19, 2010 at 11:22 AM, Jim Bosch wrote: > On Fri, 2010-03-19 at 10:56 +0800, hitesh dhiman wrote: > > > > > > -- Forwarded message -- > > From: hitesh dhiman > > Date: Thu, Mar 1

Re: [C++-sig] Fwd: passing pointers from python

2010-03-18 Thread Jim Bosch
On Fri, 2010-03-19 at 10:56 +0800, hitesh dhiman wrote: > > > -- Forwarded message -- > From: hitesh dhiman > Date: Thu, Mar 18, 2010 at 11:39 AM > Subject: passing pointers from python > To: Development of Python/C++ integration , > boost-us...@lists.boost.org > > > Hi all, >

[C++-sig] Fwd: passing pointers from python

2010-03-18 Thread hitesh dhiman
-- Forwarded message -- From: hitesh dhiman Date: Thu, Mar 18, 2010 at 11:39 AM Subject: passing pointers from python To: Development of Python/C++ integration , boost-us...@lists.boost.org Hi all, i'm trying to wrap c++ functions that have pointer variables. The test example i'm

Re: [C++-sig] Py++ - one header file including all project header files

2010-03-18 Thread Maciej Sitarz
On 17.03.2010 08:52, Roman Yakovenko wrote: Nothing, really. Please take a look on the following document: http://language-binding.net/pyplusplus/documentation/tutorials/module_builder/module_builder.html#declarations-customization and let me know whether is makes sense to you. If not come back

Re: [C++-sig] Overriding Virtual Functions

2010-03-18 Thread Nathan Stewart
On Wed, Mar 17, 2010 at 11:53 PM, Nathan Stewart wrote: > In the second example... I know that the python function "OnEvent_TypeB" > hasn't been created. I don't get why it blows up in get_override rather > than fails. The other examples I've found indicate that I should be able to > use that m

Re: [C++-sig] Executing scripts in other namespace than __main__

2010-03-18 Thread Fabzter
Hi. The only way I could deal with this issue was to keep track of every class derived from the BaseClass, in order to _not_ using it again to instantiate an object. I changed this: > exec("import sys\n", namespace_module_main, >namespace_module_main); to: > exec(

[C++-sig] Loosing real python type in Python extend class

2010-03-18 Thread Alexandre Hamez
Hello, If I have a (pure virtual) class foo that I expose in order to be extended in Python: > struct foo_wrap > : public foo > , public wrapper > { > > bool > operator==( const foo& rhs ) > const > { > return this->get_override("__eq__")(rhs); > } > > }; > > BOOS

Re: [C++-sig] Having problems with returned object.

2010-03-18 Thread Fabzter
Thank you. My problems was obviously not about std::vector, since I had already wrapped it. And sorry for my bad formed example, I was in some kind of hurry while writing it. Anyways, I already solved this problem, sorry for my former lack of detail. ___