Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console redirection fails with ECW plugin with MSVC >= 1400 #36

Closed
rouault opened this issue Sep 17, 2013 · 4 comments
Closed

Console redirection fails with ECW plugin with MSVC >= 1400 #36

rouault opened this issue Sep 17, 2013 · 4 comments

Comments

@rouault
Copy link
Contributor

rouault commented Sep 17, 2013

GDAL ticket http://trac.osgeo.org/gdal/ticket/5128 and thread http://lists.osgeo.org/pipermail/gdal-dev/2013-September/037066.html

My recent findings :

Hum, this is an interesting (=annoying) issue. Here's the result of my tests (only on 32 bit builds) :

  • release-1600-gdal-1-10-mapserver-6-2 : bad
  • release-1600-gdal-1-9-1-mapserver-6-0-3 : bad
  • release-1400-gdal-mapserver (latest dev version): bad
  • release-1500-gdal-mapserver (latest dev version): bad
  • release-1400-gdal-1-8-1-mapserver-6-0-1 : bad
  • release-1310-gdal-mapserver (latest dev version): ... good ...
  • release-1310-gdal-1-8-1-mapserver-6-0-1 : good

So my conclusion is that it does not depend on the GDAL version, but it does depend on the MSVC compiler. And apparently only MSVC 1310 pleases the ECW SDK. The issue must be a bad interaction between the old ECW SDK 3.3 code and MSVC >= 1400.

@szekerest
Copy link
Member

@rouault I'm not exactly sure how to reproduce the original issue. may be I should use a specific .tif file? I've tried this but the redirection was working, though the result in the file was truncated. Probably the file buffers are not properly flushed in gdalinfo, but that seems to be an unrelated problem.

@rouault
Copy link
Contributor Author

rouault commented Sep 28, 2013

I believe I tested it with autotest/gcore/data/byte.tif . The file where gdalinfo output was redirected was always empty. This was with Windows 7 32bit (I believe)

@szekerest
Copy link
Member

Upgraded to ECW 5.0 SDK (MSVC2008/MSVC2010) hope that's better regarding to this problem

@szekerest
Copy link
Member

ECW was upgraded, not sure about the status of the issue. Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants