<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>>But as TThread is an Object and Objects are implemented on the heap,
I <br><div>>suppose that you need synchronized heaps between the library and
the <br>>main program. <br><br>Exactly, that is what i want...<br>
<br>
>AFAIK, there is a way to have a library (if written with fpc)
"attach" to the <br>>main program's heap, but I don't know how this is
done. <br>
<br>
> Another way would be to define the complete Thread object in the
main<br>> program and from there just call normal (flat) functions in the
library, but I<br>> suppose this is not what you intend. <br>
<br>Hum, not really, i prefer to let the threat-job done by the library, not ask to the developer to reinvent the hot water... ;-)<br><br>So, what i will do (till i find a other solution), is to use a timer inside the main program who will check, calling the library, if there is something to be executed...<br><br>Many thanks Michael.<br><br>Fred<br>
<br>
<br>
<br>_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</div> </div></body>
</html>