Re: gmem.c 175 failed to allocate 175 bytes ....



On Wed, Jul 15, 2009 at 3:45 PM, Tor Lillqvist<tml iki fi> wrote:
> This is the wrong list. (This list is for the development of GTK+ and
> GLib themselves, not apps that use them.) Use gtk-app-devel-list or
> gtk-list in the future.
>
> 2009/7/14 Kuang-Chun Cheng <kccheng linuxdaq-labs com>:
>> but the problem did not show up under Linux  :-(
>
> Could be just by luck. The Windows C library is often more sensitive
> to small buffer overruns. Did you try running your code under valgrind
> on Linux, to check for heap corruption errors in your code? Remember
> to set G_SLICE="always-malloc" when using valgrind.

Thanks.
I finally figure out what's wrong in my code (using valgrid under Linux).
The problem is one of my code access an array index which is out of range !!
And nothing related to gmem.c.

KC



>
> --tml
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]