[Y-devel] Bug
Dustin Norlander dustinn at gmail.com
Sun Feb 27 05:54:18 GMT 2005
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
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved