Bug
Dustin Norlander <[email protected]> Sun, 27 Feb 2005 00:54:18 -0500
| Newsgroups | gmane.comp.graphics.y.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I found a memory problem in the protocal handling code. 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. If you want to see this bug in action add this line into sample.cc: samplecheckbox->text.get(); I have been thinking about solutions, but I think most simple fixes are going to raise similar problems in other situations. Maybe someone out there who knows the code a little better can suggest a good fix? thanks, Dustin Norlander