I have found this on Swig-1.3 Documentation, Chapter 9.1.5, Top of Page 122:<br><br>%clear Int32 *in, long *x;<br><br><br><br>Yesterday, using "%clear (int *blockXSize, int *blockYSize);" gave me an error.<br>Today I'have tried again your command and it works fine. I'm sorry for my mistake.
<br><br>Best Regards,<br>Daniele<br><br><br><br><div><span class="gmail_quote">On 8/6/06, <b class="gmail_sendername">Charlie Savage</b> <<a href="mailto:cfis@savagexi.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
cfis@savagexi.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> The right %clear directive usage is:<br> > %clear int *blockXSize, int *blockYSize;<br><br>You sure about that? See line 985 in ogr.i for a counter example:<br><br>%apply (int nLen, char *pBuf ) { (int len, char *bin_string)};
<br>%inline %{<br> OGRGeometryShadow* CreateGeometryFromWkb( int len, char *bin_string,<br> OSRSpatialReferenceShadow<br>*reference=NULL ) {<br>...<br>%}<br>%clear (int len, char *bin_string);
<br><br><br>I think what you have means clear the typemap for parameters called<br>either blockXSize *or* blockYSize, but the SWIG documentation is not<br>particularly clear on the point.<br><br>Charlie<br><br></blockquote>
</div>