<div dir="ltr">Thanks Even for your quick reaction.<div><br></div><div>I have indeed another error line, but because it was translated to Dutch I assumed it was not relevant.</div><div>This is that line translated to English:</div><div>126: Cannot find the mentioned module</div><div><br></div><div>When I use dependency walker on the gdal_ECW_JP2ECW.dll in my plug-ins folder I get errors about missing gdal200.dll, etc.</div><div>When I copy the dll into the folder with gdal200.dll dependency walker has no problems.</div><div>When I remove this dll again and copy gdalinfo.exe into this folder and use it on the ecw-file I get the expected meta data of the file.</div><div>So it seems gdal is not the problem, right?</div><div><br></div><div>Any suggestions what could be the problem?</div><div><br></div><div>Thanks,<div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br>
<br>
Paul<br>
<br>
<div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><div style="border:1px solid #e5e5e5;background-color:#f8f8f8;padding:0.8em 0.8em 0.3em 0.8em"><div style="margin:0 0 8px 0"><p style="margin:0"><span><b><img style="float:left;margin-left:5px;margin-right:5px" src="http://www.bontepaarden.nl/bontepaarden/images/newButton.png" alt="" height="120" width="160">Paul Meems </b><br><span>Release manager, configuration manager</span><br><span>and forum moderator of MapWindow GIS.</span><br><a href="http://www.mapwindow.org/" target="_blank"><span>www.mapwindow.org</span></a><br><br><span>Owner of MapWindow.nl - Support for</span><br><span>Dutch speaking users.</span><br><a href="http://www.mapwindow.nl/" target="_blank"><span>www.mapwindow.nl</span></a><br></span></p>
<p style="margin:0px"><b><br></b></p><p style="margin:0px"><b><a href="http://www.slideshare.net/mapwindow" target="_blank">The English presentations of the MapWindow GIS Conference 2014 are online.</a><br></b></p></div></div><img src="http://p1.wisestamp.com/pixel.png?p=mozilla&v=3.9.12&t=1322134056890&u=482737fd0c4ca423" height="1" width="1"></div>
</div></div></div>
<br><div class="gmail_quote">2014-12-20 16:09 GMT+01:00 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le samedi 20 décembre 2014 15:56:30, Paul Meems a écrit :<br>
<span class="">> With our ActiveX control (MapWinGIS) written in C++ we use GDAL v2.<br>
> We use the pre-build binaries from GISInternals.com.<br>
><br>
> We have two C# applications that use our ActiveX control. One does some<br>
> testing and its executable is in the same folder as our ocx and the gdal<br>
> dlls. This folder also has the gdalplugins folder with the ECW, MrSid en<br>
> NetCDF plug-ins.<br>
><br>
> When I open an ECW file in the testapplication I get this error:<br>
> GDAL FAILURE: `[..]\ECW-ERMapper-Compressed-Wavelets.ecw' not recognised as<br>
> a supported file format. But we can open the file and it is shown properly<br>
> in our map.<br>
<br>
</span>That's really surprising ! Almost a miracle, but I don't believe in miracles.<br>
The only explanation I can see is that there are 2 opening attempts, one<br>
before calling GDALAllRegister() and the second one afterwards... What would<br>
be weird code... So that must be something else.<br>
<span class=""><br>
><br>
> Our second C# application is a demo and has its executables in its own<br>
> folder.<br>
> I've set the GDAL_DRIVER_PATH env. variable to the gdalplugins folder.<br>
> When I now open the ECW file in this application I get this error:<br>
> GDAL FAILURE: Can't load requested DLL:<br>
> D:\dev\MapwinGIS\MapWinGIS\trunk\bin\Win32\gdalplugins\gdal_ECW_JP2ECW.dll<br>
<br>
</span>There should be another line afterwards with an error code and an error<br>
message, but perhaps your error handler "eats" that extra line.<br>
<span class=""><br>
> But that is the location of the dll. I've double checked. Even the casing<br>
> is correct.<br>
<br>
</span>Perhaps a dependency problem. Can the ECW SDK dll be reachable and/or in the<br>
path ?<br>
<span class=""><br>
> I also get this warning: GDAL WARNING: Failed to open<br>
> [..]\ECW-ERMapper-Compressed-Wavelets.ecw<br>
><br>
> All GDAL binaries were downloaded yesterday, but I believe we had the same<br>
> issue with prior versions of GDALv2 as well. But because the test<br>
> application did show the image we ignored it.<br>
> But the demo is a bit more strict ;)<br>
><br>
> Any suggestion is much appreciated.<br>
><br>
> Thanks,<br>
><br>
> Paul<br>
><br>
</span>> *Paul Meems *<br>
<span class="">> Release manager, configuration manager<br>
> and forum moderator of MapWindow GIS.<br>
> <a href="http://www.mapwindow.org" target="_blank">www.mapwindow.org</a><br>
><br>
> Owner of MapWindow.nl - Support for<br>
> Dutch speaking users.<br>
> <a href="http://www.mapwindow.nl" target="_blank">www.mapwindow.nl</a><br>
><br>
><br>
><br>
</span>> *The English presentations of the MapWindow GIS Conference 2014 are online.<br>
> <<a href="http://www.slideshare.net/mapwindow" target="_blank">http://www.slideshare.net/mapwindow</a>>*<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</font></span></blockquote></div><br></div>