Re: Font suddenly changes
| From: | James Cameron | Date: | Sun, 24 Nov 2002 22:03:46 +0000 |
| Subject: | Re: Font suddenly changes | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2719@lists.php.net to get a copy of this message | ||
On Fri, Nov 22, 2002 at 07:14:14AM +0100, erbel@submedia.de wrote:
> James Cameron wrote:
> >Sudden font changes can also indicate corruption of data structures kept
> >by GTK+ in memory. It only takes a small mistake.
> [...]
> But as James wrote, it's only a small mistake.
I think you misunderstand. I wasn't saying
"it is nothing to worry about",
Instead, I was saying
"all it takes is a spark and you get a forest fire".
If you see sudden font changes that are not designed to occur, the
most likely cause I have found is data corruption of widget memory.
This corruption can be very easy to do; freeing something in use, or
writing beyond the end of a structure, or forcing a cast to a class
that is not an ancestor class.
Now while I know how to make that sort of defect in C, I'm not sure
how to do it in PHP. If you can reliably cause a font change to occur,
using simple code that we review for mistakes, then you may have found
a PHP-GTK defect that needs fixing.
--
James Cameron mailto:quozl@us.netrek.org http://quozl.netrek.org/