Re: Bug
Andrew Suffield <[email protected]> Sun, 27 Feb 2005 13:04:34 +0000
| Newsgroups | gmane.comp.graphics.y.devel |
|---|---|
| Message-ID | <[email protected]> |
--2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 27, 2005 at 12:54:18AM -0500, Dustin Norlander wrote: > I found a memory problem in the protocal handling code. >=20 > Problem: > Invoking a getProperty method from the client frees the memory for the > property in the server. The problem function > (messageDespatchInvokeInstanceMethod in message.c) calls > classInvokeInstanceMethod () which returns a *Tuple. Then the > message is sent and the Tuple is destroyed. >=20 > If you want to see this bug in action add this line into sample.cc: > samplecheckbox->text.get(); >=20 > I have been thinking about solutions, but I think most simple fixes > are going to raise similar problems in other situations. >=20 > Maybe someone out there who knows the code a little better can suggest > a good fix? Allocation error in object.c, can't use tb_value there. Fixed it. --=20 .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | --2fHTh5uZTiUOsy+g Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCIcVilpK98RSteX8RAuqGAJ4u9epc7vYNINlcjlsgSRk+gdpVZQCcCbPT xpYpTtLh+cTRYMwC69DQJxk= =F4m3 -----END PGP SIGNATURE----- --2fHTh5uZTiUOsy+g--