[fpc-devel] Message method with a string identifier
Don Whitbeck
donwhit at zoominternet.net
Tue Jul 14 14:56:00 CEST 2009
On Tuesday 14 July 2009 07:30:55 am Michael Schnell wrote:
> > MsgStr: string[20]; //Doesn't work
>
> I suppose the string reference counting deletes the string before the
> receiver gets the message.
>
> -Michael
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
Looking at the results of the StringMessageTable function and looking at the
contents of the TMsgStrTable record, the name member seems to point to the
wrong data, sometimes it contains the name of a declared procedure, sometimes
it appears to be be binary data. I am assuming that these records are not
being constructed properly by the compiler.
from objpash.inc
type TMsgStrTable = record
name: PShortString;
Message name
method: pointer;
Method to call
end;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090714/438f2f68/attachment.html>
More information about the fpc-devel
mailing list