|
Re: SWIG_ConvertPtrFromString bug in SWIG 1.3.20 & 1.3.21: msg#00176programming.swig
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 _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | SWIG_ConvertPtrFromString bug in SWIG 1.3.20 & 1.3.21: 00176, Abhinandan Jain |
|---|---|
| Next by Date: | Re: bug while wrapping const char arrays without an explicitly defined size: 00176, Marcelo Matus |
| Previous by Thread: | SWIG_ConvertPtrFromString bug in SWIG 1.3.20 & 1.3.21i: 00176, Abhinandan Jain |
| Next by Thread: | Re: SWIG_ConvertPtrFromString bug in SWIG 1.3.20 & 1.3.21: 00176, Abhinandan Jain |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |