Martin Frb wrote:
ebx is a temp copy of s1, but then f1 becomes nil, and ebx points to
freed memory.

It's because "out" finalises on the caller side (due to its COM origin, I guess) while value parameters get their reference count increased on the callee side (for efficiency reasons, I guess). This is all Delphi-compatible.


Jonas
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to