<div dir="ltr">Hi Sven,<br><br><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Additional note: The "PTree = ^TTree" in front of the "TTree" is wrong and only supported by pre-2.7.1 FPC by accident. The correct code would be:<br></blockquote><div><br></div><div>I removed PTree yesterday and this problem is gone. I now understand that it is not necessary to define PTree as TTree is a pointer anyway. However, I don't understand why it is WRONG. I mean, is the problem I reported caused by this definition? If so, why it disappeared while the debug-info-generation option is turned off?<br>
<br>Say, the following is normal in pascal:<br><br></div><div><span style="font-family:courier new,monospace">type<br></span></div><div><span style="font-family:courier new,monospace"> PMyRecord = ^TMyRecord;<br></span></div>
<div><span style="font-family:courier new,monospace"> TMyRecord = record<br> ... ...<br></span></div><div><span style="font-family:courier new,monospace"> end;<br></span></div><div><br></div><div>Why it is wrong to define PTree = ^TTree? Is it because that this kind of pointer definition is:<br>
<ol><li>only valid for record, but not class?</li><li>only valid for record and NON-generic class?</li></ol><p><br></p><p>Xiangrong<br></p></div></div></div></div></div>