Hi,

I'm creating a memory raster using the following code:

std::string makeColor()
{
    // Red is specified.  Green and blue are 0.
    static uint8_t rgb[12] = { 1, 2, 3, 4 };

    std::ostringstream ss;
    ss << "MEM:::PIXELS=4,LINES=1,BANDS=3,DATAPOINTER=" << &rgb;
    return ss.str();
}

I read the three bands in succession.  This works fine on OSX/Linux, but
fails when attempting to read the second band on Windows. Any thoughts on
what might be the issue?

Thanks,

-- 
Andrew Bell
[email protected]
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to