Bug #246

PythonAPI: resolve bug with 32bit pointer type generated by Py++

Added by pospelov over 7 years ago. Updated over 7 years ago.

Status:ArchivedStart date:27 Mar 2013
Priority:HighDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 12

History

#1 Updated by pospelov over 7 years ago

  • Status changed from Backlog to Sprint

#2 Updated by pospelov over 7 years ago

  • Target version set to Sprint 12

#3 Updated by pospelov over 7 years ago

The problem:
To provide extended fitting from python we have to derive Python classes from C++'s ISampleBuilder. The sample builder parameters are created using ctypes.c_double and then passes to C++ library, using registerParameter("name",&double) interface from ParameterPool. Py++ generates wrappers for this interface which looks like

static void registerParameter( ::ParameterPool & inst, ::std::string const & name, unsigned int parpointer ){
inst.registerParameter(name, reinterpret_cast< double * >( parpointer ));
}

Thus, Py++ thinks that we are on 32bit system and pointer size is equivalent to unsigned int. Solution was to extend couple of Py++ classes and put this into BoostPythonGenerator/MakePyCore.py. The question remains, how to make it working on both, 32bit and 64bit systems.

#4 Updated by pospelov over 7 years ago

  • Status changed from Sprint to Resolved

#5 Updated by herck over 7 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF