[Gdal-dev] "Old-Style" ESRI .PRJ files -- Access Violation on ImportFromESRI

Frank Warmerdam warmerdam at pobox.com
Sat Dec 10 23:34:28 EST 2005


On 12/10/05, Christopher Michaelis <cmichaelis at happysquirrel.com> wrote:
> Ben,
>
> Thanks very much for the "CSLLoad" trick! That seemed to make all the
> difference in the world. Using your code excerpt makes it work
> beautifully... apparently my fread approach was flawed. Problem solved!

Chris,

The problem is that importFromESRI() expects a "string
list" which should be an array of "char *" with a NULL as the
last entry in the array.  Because you just passed in &pszWKT
there was no proper NULL terminator for the list.

I presume that was the cause of the crash.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list