<div dir="ltr"><div><div><div><div>Hello,<br><br></div>The documentation is not clear about the initial values of thread variables:<br><br> <i>"If threads are used then a copy
is made for each thread (including the main thread). Note that the copy is made with the
original value of the variable, <span class="gmail-cmti-10">not </span>with the value of the variable at the time the thread is
started."<br><br><br></i></div>So, if i declare a threadvar:<br><br></div>threadvar<br></div> MyObject: TObject;<br><br><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-"><br>What will be the initial value of the variable when each thread uses its copy for the first time?</span></span><br><br><div> <br></div><div>Regards<br></div></div>