<div>okay sorry for spamming the mailing list</div><div>š</div><div>So basically the other problem I reported before (generic + refcounted does not work) turns out to be something different:</div><div>Declaring variable of refcounted type in a different unit makes the compiler stop with error 2014092205</div><div>š</div><div>Assume in unit Aunit I have</div><div>š type TSomething = class refcounted end;</div><div>š</div><div>Then I declare a procedure:</div><div>š</div><div>procedure Run;<br />var<br />š server: TServer;<br />begin<br />š server := TServer.Create;<br />end;<br /><br />When procedure Run is declared in Aunit, it compiles. However, if I declare procedure Run in some other unit, say Bunit, then the compiler stops on line with assignment :=</div>