[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WG: gettext - QUESTION
From: |
Bruno Haible |
Subject: |
Re: WG: gettext - QUESTION |
Date: |
Tue, 19 Oct 2004 19:44:02 +0200 |
User-agent: |
KMail/1.5 |
Axel Schmidt asked:
> i am using gettext (version 0.13.1) the first time in a small project
> under MS Windows 2000.
>
> Since I want to create an EXE-file which do not need additional dynamic
> link libraries, i have made a static version of gettext and libiconv,
> which works fine.
>
> There is a little thing, which bothers me: when exiting my program, my
> debugger (actually MS VC7) reports some memory leaks ...
>
> Sure, this isn't really a big problem, since all memory which isnt freed
> at programm end is automatically freed by the operating system.
> Unfortunately i can't find my "private" memory leaks so easy as before,
> the trace output in the IDE of the gettext unfreed memory is much, if the
> there are many translation strings.
If you were using the dynamic libintl, you could extend the DllMain function
in intl/relocatable.c to call libc_freeres_fn; thus the cleanup would be
done at program exit (I hope). But if you link statically, I don't know
into which hook to place the call to libc_freeres_fn.
Another approach is to build your application for testing purposes without
-DENABLE_NLS; then libintl will be deactivated, and you can contentrate on
your memory leaks.
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: WG: gettext - QUESTION,
Bruno Haible <=