logo       

SWIG_ConvertPtrFromString bug in SWIG 1.3.20 & 1.3.21: msg#00175

programming.swig

Subject: SWIG_ConvertPtrFromString bug in SWIG 1.3.20 & 1.3.21

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,
(char *)NULL);
Tcl_Free((char *) ty);
Tcl_Free((char *) temp_argv);
return TCL_ERROR;
}

Thanks.

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