Another problem may be that more often then not another thread may want to acquire a new object reference. What is the status of the cMem memory manager / with/without? Can one thread create an object and be freed by another thread? What about stacks? I know you can attach events to threads using an APC queue call under windows. Using that, the owner thread could pickup that callback and create an object instance, and then a mechanism can trigger the function to return (watch out for thread lock here)
These are some questions I would raise. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel