logo       

Re: SWIG_ConvertPtrFromString bug in SWIG 1.3.20 & 1.3.21: msg#00178

programming.swig

Subject: Re: SWIG_ConvertPtrFromString bug in SWIG 1.3.20 & 1.3.21

On Thu, May 27, 2004 at 10:13:37AM +0200, Matthias Koeppe wrote:
> Abhinandan Jain <jain@xxxxxxxxxxxxxxxxxxx> writes:
>
> > There appears to be a lingering bug with the call to
> > SWIG_ConvertPtrFromString in both SWIG 1.3.20 and 1.3.21 while
> > generating Tcl wrappers. The new version of this function takes only 4
> > arguments, but there are some places in the generated code where this
> > function is being incorrectly passed 5 arguments.
> >
> > Here is a code excerpt with the bad call -
> >
> > // Convert the string name to a real C++ pointer
> > if (SWIG_ConvertPtrFromString(interp, cargs, (void**)&temp,
> > ty, 0) != TCL_OK) {
> > Tcl_AppendResult(interp,"Conversion from Tcl pointer to
> > PixLoc* failed: \n",
> > " SWIG_ConvertPtrFromString failed!",
> > " input = ", cargs, [...]
>
> This code seems to come from a custom typemap (defined in your
> interface files), which needs to be changed to work with SWIG >= 1.3.20.
>
> Regards,
> --
> Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe


Oops - you are absolutely right. Thanks for helping me get to the bottom
of this.

Abhi
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise