Re: [gtk-list] Gtk--: Tracking down clobbered pointers and mysterious crashes



robert_gasch@peoplesoft.com writes:

> 1) Does anybody have any suggestions for some (software)
> tools which might aid in discovering these obsucre bugs?

Parasoft has just released a "light" version of Insure++, freely
available on the RH 6.0 applications CD.

> 2) I typically allocate most my Gtk-- objects on the stack.
> Is this considered OK or would dynamic allocation be
> better?

No, it's quite OK, though a common mistake is to forget that they're
on the stack and thus have limited scope.

> I seem to remember that Gtk objects are very small themselves and
> dynamically allocate the memory they need (which would make stack
> allocation OK). Any tips from the Gtk-- gurus?

Gtk-- objects are quite bigger than GTK+ ones though still of a
reasonable size (2Kb average). Karl and Tero are working to reduce
this and have achieved some impressive improvements.

-- 
					Guillaume.
					http://www.worldnet.fr/~glaurent



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