>       What I'm glad I finally did get out of my questioning was Rob's
> information on how use within an array inhibits the normal reference
> counting Delphi uses as I never would have considered that 
> and would have
> ended up with some pretty nasty memory leaks that would be 

I'm not sure I follow you here.  I only have one message from Rob on this
thread and he doesn't say anything of this sort.  But I doubt he would have
explained it quite so simply.  I don't agree Robert that "use within an
array inhibits the normal reference counting...."  It's not that "use within
the array" that causes the problem here.  Regardless of how you hang on to
created "things" be they variabled, record, objects, etc. it /is/ possible
to for ref. counted types to break this handling if you don't insure you at
least keep things with typed pointers.  For example, if you wanted an array
of string pointers use pstring not the generic pointer type and the ref.
counting mechanism should remain intact.  In fact, you can even typecast
them, as long as they exist as pstrings you'll be ok.  But in my experience,
if you encounter this problem there is usually an alternative but I wouldn't
place the blame on arrays per se.


Regards,


Jim


------------------------------------------------------------------------
 Jim Burns, <mailto:[EMAIL PROTECTED]>
   Technology Dynamics
   Pearland, Texas  USA 
   281 485-0410 / 281 813-6939

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to