[Proj] Memory leaks using proj.4 DLL

Frank Warmerdam warmerdam at pobox.com
Tue Jan 27 07:51:37 PST 2009


michael.hovenbitzer at bkg.bund.de wrote:
> Hello List,
> 
> I would like to use Proj.4 in a MFC-VisualC-Program (VC++6)
> 
> to transform coordinates with the NTv2-method.
> 
> Using the newest source of proj4.6.1 I build the proj.dll
> 
> and so on. The compilation and linking of my software
> 
> went quite well (with only a few problems solved in your list).
> 
> But when I start my software I got memory leaks !
> 
> Testing the DLL with only one button I could discover that
> 
> the DLL is working correct (the transfromed point had the
> 
> right coordinates). Using all GUI-Features the transformed
> 
> coordinates are wrong, because of memory leaks (the name
> 
> of the shift file is seemingly overwritten).
> 
> Maybe someone has had a similar problem and can help me
> 
> solving my problem.

Michael,

I tried the following command with one test point under valgrind
and it did not seem to indicate any memory leaks:

   cs2cs +proj=latlong +datum=NAD27 +to +proj=latlong +datum=NAD83

This did load and use the conus grid shift file.  I also tried a
point using the New Zealand NTv2 grid shift file.  Also no report of
problems.

Could you be more specific about how you have determined there is a leak?

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 Proj mailing list