Re: [gdal-dev] CSharp bindings question

2015-05-29 Thread Ari Jolma
On 29.05.2015 15:22, Tamas Szekeres wrote: Hi Ari, Which SWIG version have you been testing with? Mostly with the one that's loaded by default into a new Ubuntu (travis) / Mint (I have version 17 which is based on Ubuntu Trusty), both are 2.0.11 I think. Converting IntPtr to string doesn

Re: [gdal-dev] CSharp bindings question

2015-05-29 Thread Tamas Szekeres
Hi Ari, Which SWIG version have you been testing with? Converting IntPtr to string doesn't seem to be a good solution. We should do something like what we do for ReadRaster which also use AddrOfPinnedObject(). I'm trying to reproduce this. Best regards, Tamas 2015-05-29 9:11 GMT+02:00 Ari Jol

Re: [gdal-dev] CSharp bindings question

2015-05-29 Thread Even Rouault
Hi Ari, > In my fork I've now added mono-mcs into the travis test machine and > "make test" to CSharp. The build & tests all work. > > https://travis-ci.org/OSGeo/gdal/builds/6445 > > However, one fix I did for the CSharp bindings is most probably wrong > (convert return value of handle.Addr

Re: [gdal-dev] CSharp bindings question

2015-05-29 Thread Ari Jolma
In my fork I've now added mono-mcs into the travis test machine and "make test" to CSharp. The build & tests all work. https://travis-ci.org/OSGeo/gdal/builds/6445 However, one fix I did for the CSharp bindings is most probably wrong (convert return value of handle.AddrOfPinnedObject() to