How can I specify the Owner of component read from a Delphi TStream?
        Posted  
        
            by Roddy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Roddy
        
        
        
        Published on 2010-04-22T10:30:38Z
        Indexed on 
            2010/04/22
            10:33 UTC
        
        
        Read the original article
        Hit count: 234
        
I'm reading a component from a stream, and want to be able to specify the Owner property.
  var TComponent : comp;
  stream.Seek(0, soFromBeginning);
  comp := stream.ReadComponent(nil);
Who owns comp, and how can I change it? I'd hoped the parameter to readComponent would be the owner, but it seems to do something totally different!
© Stack Overflow or respective owner